File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,21 @@ incdir_numpy = run_command(py,
23
23
check : true
24
24
).stdout().strip()
25
25
26
- # Add OpenMP dependency (optional, for threading)
26
+ # OpenMP dependency (optional, for threading)
27
27
openmp_dep = dependency (' openmp' , required : false )
28
28
qblas_dep = dependency (' qblas' , fallback : [' qblas' , ' qblas_dep' ])
29
29
dependencies = [sleef_dep, py_dep, qblas_dep]
30
30
if openmp_dep.found()
31
31
dependencies += openmp_dep
32
32
endif
33
33
34
- # compiler flags for QBLAS compatibility
34
+ # compiler flags for QBLAS compatibility
35
35
if not is_windows
36
36
# QBLAS requires extended numeric literals for Q suffix support
37
- add_project_arguments (' -fext-numeric-literals' , language : ' cpp' )
37
+ # if compiler supports (usually gcc)
38
+ if cpp.has_argument(' -fext-numeric-literals' )
39
+ add_project_arguments (' -fext-numeric-literals' , language : ' cpp' )
40
+ endif
38
41
endif
39
42
40
43
# Thread-local storage detection (borrowed from NumPy)
You can’t perform that action at this time.
0 commit comments