зеркало из https://github.com/microsoft/clang.git
Makefiles: Set Clang CPP compiler flags in a single location, instead of scattered throughout the project Makefiles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105638 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
afed099bd2
Коммит
c4dec1c58e
6
Makefile
6
Makefile
|
@ -32,6 +32,12 @@ LEVEL := $(CLANG_LEVEL)/../..
|
|||
# Include LLVM common makefile.
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
# Set common Clang build flags.
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/$(CLANG_LEVEL)/include -I$(PROJ_OBJ_DIR)/$(CLANG_LEVEL)/include
|
||||
ifdef CLANG_VENDOR
|
||||
CPP.Flags += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
|
||||
endif
|
||||
|
||||
###
|
||||
# Clang Top Level specific stuff.
|
||||
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
CLANG_LEVEL := ../..
|
||||
LIBRARYNAME = PrintFunctionNames
|
||||
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
# Include this here so we can get the configuration of the targets that have
|
||||
# been configured for construction. We have to do this early so we can set up
|
||||
# LINK_COMPONENTS before including Makefile.rules
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
CLANG_LEVEL := ../..
|
||||
|
||||
TOOLNAME = clang-interpreter
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
NO_INSTALL = 1
|
||||
|
||||
# No plugins, optimize startup time.
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
CLANG_LEVEL := ../..
|
||||
|
||||
TOOLNAME = clang-wpa
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
NO_INSTALL = 1
|
||||
|
||||
# No plugins, optimize startup time.
|
||||
|
|
|
@ -15,7 +15,5 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangAST
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -15,7 +15,5 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangAnalysis
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -15,11 +15,6 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangBasic
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
ifdef CLANG_VENDOR
|
||||
CPPFLAGS += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
|
||||
endif
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
SVN_REVISION := $(shell $(LLVM_SRC_ROOT)/utils/GetSourceVersion $(PROJ_SRC_DIR)/../..)
|
||||
|
|
|
@ -15,7 +15,5 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangChecker
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -16,10 +16,5 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangCodeGen
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
ifdef CLANG_VENDOR
|
||||
CPP.Flags += -DCLANG_VENDOR='"$(CLANG_VENDOR) "'
|
||||
endif
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -11,6 +11,4 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangDriver
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
|
|
@ -11,7 +11,5 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangFrontend
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -21,7 +21,5 @@ ifeq ($(ARCH),PowerPC)
|
|||
CXX.Flags += -maltivec
|
||||
endif
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -21,7 +21,5 @@ ifeq ($(ARCH),PowerPC)
|
|||
CXX.Flags += -maltivec
|
||||
endif
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -15,7 +15,5 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangParse
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -15,7 +15,5 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangRewrite
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -16,7 +16,5 @@ CLANG_LEVEL := ../..
|
|||
LIBRARYNAME := clangSema
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
include $(CLANG_LEVEL)/Makefile
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
CLANG_LEVEL := ../..
|
||||
|
||||
TOOLNAME = c-index-test
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
# No plugins, optimize startup time.
|
||||
TOOL_NO_EXPORTS = 1
|
||||
|
|
|
@ -16,7 +16,6 @@ else
|
|||
TOOLALIAS = clang++
|
||||
endif
|
||||
endif
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
# Clang tool has no plugins, optimize startup time.
|
||||
TOOL_NO_EXPORTS = 1
|
||||
|
|
|
@ -12,8 +12,6 @@ LIBRARYNAME = clang
|
|||
|
||||
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/libclang.exports
|
||||
|
||||
CPP.Flags += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||
|
||||
# Include this here so we can get the configuration of the targets
|
||||
# that have been configured for construction. We have to do this
|
||||
# early so we can set up LINK_COMPONENTS before including Makefile.rules
|
||||
|
|
Загрузка…
Ссылка в новой задаче