File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ CXXFLAGS+= -fno-exceptions
57
57
CXXFLAGS+ = -fno-rtti
58
58
CXXSTD = c++17
59
59
60
- .if ${COMPILER_TYPE} == "clang" && ${MACHINE_CPUARCH} == "i386"
60
+ .if ${COMPILER_TYPE} == "clang"
61
+ .if ${MACHINE_CPUARCH} == "i386"
61
62
.if ${COMPILER_VERSION} >= 90000
62
63
# When targeting i386, clang 9.0.0 produces a new warning about large atomic
63
64
# operations "possibly incurring significant performance penalties", but there
@@ -69,8 +70,14 @@ CWARNFLAGS+= -Wno-atomic-alignment
69
70
# builtin operations must have natural alignment, but there is not much we
70
71
# can do about it.
71
72
CWARNFLAGS+ = -Wno-sync-alignment
72
- .endif
73
- .endif
73
+ .endif # COMPILER_VERSION >= 170000
74
+ .endif # MACHINE_CPUARCH == i386
75
+ .if ${COMPILER_VERSION} >= 180000
76
+ # clang 18.0.0 introduces a new warning about variable length arrays in C++,
77
+ # which OpenMP makes use of in several sources.
78
+ CXXWARNFLAGS+ = -Wno-vla-cxx-extension
79
+ .endif # COMPILER_VERSION >= 180000
80
+ .endif # COMPILER_TYPE == clang
74
81
75
82
LDFLAGS+ = -Wl,--warn-shared-textrel
76
83
LDFLAGS+ = -Wl,--gc-sections
You can’t perform that action at this time.
0 commit comments