Skip to content

Commit

Permalink
Revert "OSX: Switch to Clang as the default compiler."
Browse files Browse the repository at this point in the history
It breaks cross-compilation to Android.
And host "gcc" aliases to "clang", anyway.
  • Loading branch information
Mike Pall committed Jul 31, 2016
1 parent 6be5ffd commit 02b9b55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ <h2 id="cross">Cross-compiling LuaJIT</h2>
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>
Expand Down
4 changes: 0 additions & 4 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

##############################################################################
Expand Down

0 comments on commit 02b9b55

Please sign in to comment.