Do not inherit extra warning and visibility flags from llvm.
This commit is contained in:
@ -59,7 +59,11 @@ INCLUDEFILES += $(CLINGDEP)
|
|||||||
# include dir for picking up RuntimeUniverse.h etc - need to
|
# include dir for picking up RuntimeUniverse.h etc - need to
|
||||||
# 1) copy relevant headers to include/
|
# 1) copy relevant headers to include/
|
||||||
# 2) rely on TCling to addIncludePath instead of using CLING_..._INCL below
|
# 2) rely on TCling to addIncludePath instead of using CLING_..._INCL below
|
||||||
CLINGLLVMCXXFLAGS = $(patsubst -O%,,$(shell $(LLVMCONFIG) --cxxflags))
|
CLINGLLVMCXXFLAGS := $(patsubst -O%,,$(shell $(LLVMCONFIG) --cxxflags))
|
||||||
|
# -fvisibility=hidden renders libCore unusable.
|
||||||
|
CLINGLLVMCXXFLAGS := $(filter-out -fvisibility-inlines-hidden,$(filter-out -fvisibility=hidden,$(CLINGLLVMCXXFLAGS)))
|
||||||
|
# Filter out warning flags.
|
||||||
|
CLINGLLVMCXXFLAGS := $(filter-out -W%,$(CLINGLLVMCXXFLAGS))
|
||||||
# -ffunction-sections breaks the debugger on some platforms ... and does not help libCling at all.
|
# -ffunction-sections breaks the debugger on some platforms ... and does not help libCling at all.
|
||||||
CLINGCXXFLAGS += -I$(CLINGDIR)/include $(filter-out -ffunction-sections,$(CLINGLLVMCXXFLAGS)) -fno-strict-aliasing
|
CLINGCXXFLAGS += -I$(CLINGDIR)/include $(filter-out -ffunction-sections,$(CLINGLLVMCXXFLAGS)) -fno-strict-aliasing
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user