Skip to content

Commit ab32e23

Browse files
committed
Use the correct arg for linking with omp
1 parent 9194db1 commit ab32e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def build_extensions(self) -> None:
7979
extension.extra_compile_args.append("-std=c++11")
8080
if support:
8181
extension.extra_compile_args.append("-fopenmp")
82-
extension.extra_link_args.append("-lomp")
82+
extension.extra_link_args.append("-lgomp")
8383
else:
8484
warnings.warn(
8585
"\x1b[31;20m OpenMP is not installed on this system. "

0 commit comments

Comments
 (0)