Skip to content

Commit

Permalink
Try to fix compilation error on Windows (compiling as C++20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquev6 committed Nov 7, 2024
1 parent 8319759 commit fb91c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ def make_liblincs_extension():
("__WIN32", None), # For Cadical inside EvalMaxSat
("_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS", None), # Silence a few warnings for OR-Tools
]
extra_compile_args["c++"] = ["/std:c++17", "/openmp"]
extra_compile_args["vendored-c++"] = ["/std:c++17", "-w", "-DQUIET", "-DNBUILD", "-DNCONTRACTS"]
extra_compile_args["c++"] = ["/std:c++20", "/openmp"]
extra_compile_args["vendored-c++"] = ["/std:c++20", "-w", "-DQUIET", "-DNBUILD", "-DNCONTRACTS"]
lincs_dependencies = os.environ.get("LINCS_DEV_DEPENDENCIES", os.path.join("c:", "lincs-deps"))
include_dirs += [os.path.join(lincs_dependencies, "include")]
library_dirs += [os.path.join(lincs_dependencies, "lib")]
Expand Down

0 comments on commit fb91c40

Please sign in to comment.