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,
2323 check : true
2424).stdout().strip()
2525
26- # Add OpenMP dependency (optional, for threading)
26+ # OpenMP dependency (optional, for threading)
2727openmp_dep = dependency (' openmp' , required : false )
2828qblas_dep = dependency (' qblas' , fallback : [' qblas' , ' qblas_dep' ])
2929dependencies = [sleef_dep, py_dep, qblas_dep]
3030if openmp_dep.found()
3131 dependencies += openmp_dep
3232endif
3333
34- # compiler flags for QBLAS compatibility
34+ # compiler flags for QBLAS compatibility
3535if not is_windows
3636 # 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
3841endif
3942
4043# Thread-local storage detection (borrowed from NumPy)
You can’t perform that action at this time.
0 commit comments