mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Add support for building the LLVM libraries and tools as a Mac OS/X
universal binary, by specifying UNIVERSAL=1 on the make command line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27447 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6cb5bb679
commit
ba46665b70
@ -360,6 +360,13 @@ ifeq ($(OS),HP-UX)
|
|||||||
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
|
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If we are building a universal binary on Mac OS/X, pass extra options. This is
|
||||||
|
# useful to people that want to link the LLVM libraries into their universal apps.
|
||||||
|
ifdef UNIVERSAL
|
||||||
|
CompileCommonOpts += -arch i386 -arch ppc -isysroot /Developer/SDKs/MACOSX10.4u.sdk/
|
||||||
|
DISABLE_AUTO_DEPENDENCIES=1
|
||||||
|
endif
|
||||||
|
|
||||||
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
|
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
|
||||||
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
|
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
|
||||||
# All -I flags should go here, so that they don't confuse llvm-config.
|
# All -I flags should go here, so that they don't confuse llvm-config.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user