Skip to content

Commit 9c31ce0

Browse files
committed
Add -fext-numeric-literals compiler flag for QBLAS compatibility
1 parent d22d0a2 commit 9c31ce0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

quaddtype/meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ if openmp_dep.found()
3131
dependencies += openmp_dep
3232
endif
3333

34+
# compiler flags for QBLAS compatibility
35+
if not is_windows
36+
# QBLAS requires extended numeric literals for Q suffix support
37+
add_project_arguments('-fext-numeric-literals', language: 'cpp')
38+
endif
39+
3440
# Thread-local storage detection (borrowed from NumPy)
3541
optional_variable_attributes = [
3642
['thread_local', 'HAVE_THREAD_LOCAL'], # C23

0 commit comments

Comments
 (0)