|
26 | 26 | "treat_warnings_as_errors": "false", |
27 | 27 | "use_clang_modules": "false", |
28 | 28 | "use_custom_libcxx": "false", |
| 29 | + "use_sysroot": "true" if platform.system() in ("Linux",) else "false", |
29 | 30 | "v8_deprecation_warnings": "true", |
30 | 31 | "v8_enable_disassembler": "false", |
31 | 32 | "v8_enable_i18n_support": "true", |
|
34 | 35 | "v8_enable_31bit_smis_on_64bit_arch": "false", |
35 | 36 | "v8_imminent_deprecation_warnings": "true", |
36 | 37 | "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", |
38 | 41 | "v8_use_external_startup_data": "false", |
39 | 42 | } |
40 | 43 |
|
@@ -122,7 +125,16 @@ def get_libboost_python_name(): |
122 | 125 | library_dirs.add(os.path.join(os.environ["Python_ROOT_DIR"], "libs")) |
123 | 126 |
|
124 | 127 | 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 | + ] |
126 | 138 | extra_link_args += ["/DLL", "/OPT:REF", "/OPT:ICF", "/MACHINE:X64"] |
127 | 139 | macros += [ |
128 | 140 | ("HAVE_SNPRINTF", None), |
|
0 commit comments