Skip to content

Commit 8f5cfd7

Browse files
committed
Minor changes
1 parent aa0ac17 commit 8f5cfd7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

settings.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"treat_warnings_as_errors": "false",
2727
"use_clang_modules": "false",
2828
"use_custom_libcxx": "false",
29+
"use_sysroot": "true" if platform.system() in ("Linux",) else "false",
2930
"v8_deprecation_warnings": "true",
3031
"v8_enable_disassembler": "false",
3132
"v8_enable_i18n_support": "true",
@@ -34,7 +35,9 @@
3435
"v8_enable_31bit_smis_on_64bit_arch": "false",
3536
"v8_imminent_deprecation_warnings": "true",
3637
"v8_monolithic": "true",
37-
"v8_monolithic_for_shared_library": "true",
38+
"v8_monolithic_for_shared_library": "false"
39+
if platform.system() in ("Windows",)
40+
else "true",
3841
"v8_use_external_startup_data": "false",
3942
}
4043

@@ -122,7 +125,16 @@ def get_libboost_python_name():
122125
library_dirs.add(os.path.join(os.environ["Python_ROOT_DIR"], "libs"))
123126

124127
libraries += ["winmm", "ws2_32", "Advapi32", "dbghelp", "v8_monolith"]
125-
extra_compile_args += ["/O2", "/GL", "/MT", "/EHsc", "/Gy", "/Zi", "/std:c++20", "/Zc:__cplusplus"]
128+
extra_compile_args += [
129+
"/O2",
130+
"/GL",
131+
"/MT",
132+
"/EHsc",
133+
"/Gy",
134+
"/Zi",
135+
"/std:c++20",
136+
"/Zc:__cplusplus",
137+
]
126138
extra_link_args += ["/DLL", "/OPT:REF", "/OPT:ICF", "/MACHINE:X64"]
127139
macros += [
128140
("HAVE_SNPRINTF", None),

0 commit comments

Comments
 (0)