summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Shinwell <mshinwell@gmail.com>2017-05-16 20:58:23 +0100
committerDavid Allsopp <david.allsopp@metastack.com>2017-05-16 20:58:23 +0100
commit0bf66ce0e1f7669e882de93796a87527d0c8db46 (patch)
treea6a05be4cf97bd336e0fef8d6f692ff538f280e1 /configure
parent65a492d23522140e7766428b00b8d7c8446ec1cc (diff)
downloadocaml-0bf66ce0e1f7669e882de93796a87527d0c8db46.tar.gz
Suppress trigraph warnings from macOS assembler (#1093)
Also check that trigraphs aren't interpreted
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 3e2adce418..9e54cc26bb 100755
--- a/configure
+++ b/configure
@@ -958,8 +958,8 @@ asppprofflags='-DPROFILING'
case "$arch,$system" in
amd64,macosx) if sh ./searchpath clang; then
- as='clang -arch x86_64 -c'
- aspp='clang -arch x86_64 -c'
+ as='clang -arch x86_64 -Wno-trigraphs -c'
+ aspp='clang -arch x86_64 -Wno-trigraphs -c'
else
as="${TOOLPREF}as -arch x86_64"
aspp="${TOOLPREF}gcc -arch x86_64 -c"
@@ -987,7 +987,7 @@ case "$arch,$system" in
as="${TOOLPREF}as"
case "$ccfamily" in
clang-*)
- aspp="${TOOLPREF}clang -c"
+ aspp="${TOOLPREF}clang -c -Wno-trigraphs"
;;
*)
aspp="${TOOLPREF}gcc -c"