aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@college-de-france.fr>2021-04-27 11:22:05 +0200
committerXavier Leroy <xavier.leroy@college-de-france.fr>2021-04-27 11:22:05 +0200
commit868da35cd23d47e8c027967148518497f921f829 (patch)
tree7b10ea78d957a75071852ce9f4cc6793e253b4ff /configure
parent48bc183167c4ce01a5c9ea86e49d60530adf7290 (diff)
downloadcompcert-kvx-868da35cd23d47e8c027967148518497f921f829.tar.gz
compcert-kvx-868da35cd23d47e8c027967148518497f921f829.zip
MacOS: add a #define __DARWIN_OS_INLINE
Seems necessary for the standard headers of a recent version of XCode. The actual definition in the standard headers is only for GNUC.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 5067f306..9b00e1be 100755
--- a/configure
+++ b/configure
@@ -363,7 +363,7 @@ if test "$arch" = "x86" -a "$bitsize" = "64"; then
casm_options="-arch x86_64 -c"
clinker_options="-arch x86_64"
clinker_needs_no_pie=false
- cprepro_options="-std=c99 -arch x86_64 -U__GNUC__ -U__clang__ -U__BLOCKS__ '-D__attribute__(x)=' '-D__asm(x)=' '-D_Nullable=' '-D_Nonnull=' -Wno-\\#warnings -E"
+ cprepro_options="-std=c99 -arch x86_64 -U__GNUC__ -U__clang__ -U__BLOCKS__ '-D__attribute__(x)=' '-D__asm(x)=' '-D_Nullable=' '-D_Nonnull=' '-D__DARWIN_OS_INLINE=static inline' -Wno-\\#warnings -E"
libmath=""
system="macos"
;;
@@ -417,7 +417,7 @@ if test "$arch" = "aarch64"; then
clinker="${toolprefix}cc"
clinker_needs_no_pie=false
cprepro="${toolprefix}cc"
- cprepro_options="-std=c99 -arch arm64 -U__GNUC__ -U__clang__ -U__BLOCKS__ '-D__attribute__(x)=' '-D__asm(x)=' '-D_Nullable=' '-D_Nonnull=' -Wno-\\#warnings -E"
+ cprepro_options="-std=c99 -arch arm64 -U__GNUC__ -U__clang__ -U__BLOCKS__ '-D__attribute__(x)=' '-D__asm(x)=' '-D_Nullable=' '-D_Nonnull=' '-D__DARWIN_OS_INLINE=static inline' -Wno-\\#warnings -E"
libmath=""
system="macos"
;;