Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/witty/compile_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,22 @@ def build_extra_objects(build_dir: Path) -> list[str]:
extra_compile_args = []
# Use MSVC style flag on Windows, GCC/Clang flags otherwise
if sys.platform == "win32":
extra_compile_args += [
extra_compile_args = [
"/std:c++17",
"/DNDEBUG",
"/DNB_COMPACT_ASSERTIONS",
"/O2",
"/EHsc",
]
] + extra_compile_args
else:
extra_compile_args += [
extra_compile_args = [
"-std=c++17",
"-fvisibility=hidden",
"-DNDEBUG",
"-DNB_COMPACT_ASSERTIONS",
"-fPIC",
"-O3",
]
] + extra_compile_args

return _compile_module(
source,
Expand Down
Loading