Commit e154363c authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

fix windows cross-compile

parent 244088e9
Pipeline #9879 failed with stages
in 4 minutes and 20 seconds
......@@ -32,7 +32,8 @@ seamshbuild-windows :
image : immc/seamsh-build:v0.9
stage : build
script:
- LDSHARED="x86_64-w64-mingw32-gcc" LDFLAGS="-fstack-protector-strong -shared -O2" CC=x86_64-w64-mingw32-gcc python3 setup.py bdist_wheel --plat-name=win_amd64
- LDSHARED="x86_64-w64-mingw32-gcc" LDFLAGS="-shared -O2" CC=x86_64-w64-mingw32-gcc CFLAGS="-O2 -fno-stack-protector" python3 setup.py bdist_wheel --plat-name=win_amd64
artifacts:
paths:
- dist
......
......@@ -76,12 +76,7 @@ def project_points(x, pfrom, pto):
libdir = os.path.dirname(os.path.realpath(__file__))
if platform.system() == "Windows":
libpath = os.path.join(libdir, "seamsh.dll")
elif platform.system() == "Darwin":
libpath = os.path.join(libdir, "libseamsh.dylib")
else:
libpath = os.path.join(libdir, "libseamsh.so")
libpath = os.path.join(libdir, "libseamsh.so")
lib = c.CDLL(libpath)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment