Skip to content

Commit 9444068

Browse files
committed
add flags for compilation
1 parent 5802ddf commit 9444068

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/build.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,15 @@ def build() -> None:
115115
if ocamlpath == "":
116116
raise SystemError("ocamlopt not found")
117117
compileargs += (
118+
" /LD" # include dll information
118119
" /wd4090" # C4090: '=': different 'const' qualifiers
119120
" /wd4024" # different types for formal and actual parameter
120121
" /wd4047" # 'value *' differs in levels of indirection
121122
)
122123
extra_link_args.append(mlobject + "bj") # .obj
123124
# libraries=["ws2_32", "version"], # Link Windows libraries
124-
# extra_link_args.append(f"{ocamlpath}/flexdll/flexdll_msvc64.obj")
125-
# extra_link_args.append(f"{ocamlpath}/flexdll/flexdll_initer_msvc64.obj")
125+
extra_link_args.append(f"{ocamlpath}/flexdll/flexdll_msvc64.obj")
126+
extra_link_args.append(f"{ocamlpath}/flexdll/flexdll_initer_msvc64.obj")
126127

127128
extensions = [
128129
Extension(

0 commit comments

Comments
 (0)