diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-09-02 21:17:18 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-01-07 17:46:17 +0000 |
| commit | fe013be447cd855ccaf6094a1d06aea570450629 (patch) | |
| tree | 9adc1e0a5d25b6280995832bb29d592fb80554a6 /lib/libomp/Makefile | |
| parent | 2f3b605b2e159522ecab77fd518e8139aaf581e9 (diff) | |
Diffstat (limited to 'lib/libomp/Makefile')
| -rw-r--r-- | lib/libomp/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libomp/Makefile b/lib/libomp/Makefile index f2ca913e43f3..52f234512ea7 100644 --- a/lib/libomp/Makefile +++ b/lib/libomp/Makefile @@ -55,14 +55,22 @@ CFLAGS+= -fdata-sections CXXFLAGS+= -fvisibility-inlines-hidden CXXFLAGS+= -fno-exceptions CXXFLAGS+= -fno-rtti -CXXSTD= c++11 +CXXSTD= c++17 -.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 90000 +.if ${COMPILER_TYPE} == "clang" && ${MACHINE_CPUARCH} == "i386" +.if ${COMPILER_VERSION} >= 90000 # When targeting i386, clang 9.0.0 produces a new warning about large atomic # operations "possibly incurring significant performance penalties", but there # is not much we can do about it. CWARNFLAGS+= -Wno-atomic-alignment .endif +.if ${COMPILER_VERSION} >= 170000 +# When targeting i386, clang 17.0.0 produces a new warning that __sync +# builtin operations must have natural alignment, but there is not much we +# can do about it. +CWARNFLAGS+= -Wno-sync-alignment +.endif +.endif LDFLAGS+= -Wl,--warn-shared-textrel LDFLAGS+= -Wl,--gc-sections |
