mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
reduce duplicate -I flags passed to the compiler, cleaning up the VERBOSE
output. Patch contributed by Sam Bishop! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4189a538e4
commit
2671fc390c
@ -454,12 +454,11 @@ endif
|
||||
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
|
||||
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
|
||||
# All -I flags should go here, so that they don't confuse llvm-config.
|
||||
CPP.Flags += -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \
|
||||
-I$(PROJ_OBJ_ROOT)/include \
|
||||
-I$(PROJ_SRC_ROOT)/include \
|
||||
-I$(LLVM_OBJ_ROOT)/include \
|
||||
-I$(LLVM_SRC_ROOT)/include \
|
||||
$(CPP.BaseFlags)
|
||||
CPP.Flags += $(patsubst %,-I%/include,$(sort \
|
||||
$(PROJ_OBJ_DIR) $(PROJ_SRC_DIR) \
|
||||
$(PROJ_OBJ_ROOT) $(PROJ_SRC_ROOT) \
|
||||
$(LLVM_OBJ_ROOT) $(LLVM_SRC_ROOT))) \
|
||||
$(CPP.BaseFlags)
|
||||
|
||||
Compile.C = $(CC) $(CPP.Flags) $(C.Flags) $(CompileCommonOpts) -c
|
||||
LTCompile.C = $(LIBTOOL) $(LibTool.Flags) --mode=compile $(Compile.C)
|
||||
|
Loading…
Reference in New Issue
Block a user