Skip to content

Commit

Permalink
extra link args
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumgizmos committed Nov 26, 2023
1 parent f1e9bab commit 4e90918
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,8 @@ def generate_cython_stub_file(pyx_filepath: str, output_filepath: str) -> None:

if sys.platform == "win32":
compile_flags = ["/Ox", "/std:c++20",'-fopenmp']
extra_link_args =['-lgomp','-fopenmp'],
else:
compile_flags = ["-std=c++2a", "-O3",'-fopenmp']
extra_link_args =['-lgomp','-fopenmp'],

this_directory = Path(__file__).parent

Expand All @@ -125,7 +123,7 @@ def generate_cython_stub_file(pyx_filepath: str, output_filepath: str) -> None:
library_dirs=[],
include_dirs=[np.get_include(),'src_cpp', 'include/robin_map','include/ldpc/src_cpp'],
extra_compile_args=compile_flags,
extra_link_args=extra_link_args,
extra_link_args=[],
language="c++",
)
)
Expand Down

0 comments on commit 4e90918

Please sign in to comment.