]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Revert "OSX: Switch to Clang as the default compiler."
authorMike Pall <mike>
Sun, 31 Jul 2016 11:26:58 +0000 (13:26 +0200)
committerMike Pall <mike>
Sun, 31 Jul 2016 11:39:55 +0000 (13:39 +0200)
It breaks cross-compilation to Android.
And host "gcc" aliases to "clang", anyway.

doc/install.html
src/Makefile

index a34f39f0fa068a50a8692c2fde9e38c665af7e37..e3139583fef045662aa0618519e633907d650b0f 100644 (file)
@@ -455,8 +455,8 @@ Or use Android. :-p
 ISDKP=$(xcrun --sdk iphoneos --show-sdk-path)
 ICC=$(xcrun --sdk iphoneos --find clang)
 ISDKF="-arch armv7 -isysroot $ISDKP"
-make HOST_CC="clang -m32 -arch i386" CROSS="$(dirname $ICC)/" \
-     TARGET_FLAGS="$ISDKF" TARGET_SYS=iOS
+make DEFAULT_CC=clang HOST_CC="clang -m32 -arch i386" \
+     CROSS="$(dirname $ICC)/" TARGET_FLAGS="$ISDKF" TARGET_SYS=iOS
 </pre>
 
 <h3 id="consoles">Cross-compiling for consoles</h3>
index 1cddf188cdcd4a81e30ecd4a92c45d0776afb036..9285c11f0d76250ec845a8e7a4ca78ea5470444a 100644 (file)
@@ -169,10 +169,6 @@ else
     HOST_SYS= Windows
     HOST_MSYS= cygwin
   endif
-  # Use Clang for OSX host.
-  ifeq (Darwin,$(HOST_SYS))
-    DEFAULT_CC= clang
-  endif
 endif
 
 ##############################################################################