Pass pthread to CIFactory; enable it in LangOpts.
This commit is contained in:
parent
3d4bb2b954
commit
cfd091955e
@ -168,7 +168,7 @@ $(CLINGEXCEPO): CLINGEXCCXXFLAGS := -fexceptions
|
|||||||
$(CLINGETC) : $(LLVMLIB)
|
$(CLINGETC) : $(LLVMLIB)
|
||||||
$(CLINGO) : $(CLINGETC)
|
$(CLINGO) : $(CLINGETC)
|
||||||
$(call stripsrc,$(MODDIR)/lib/Interpreter/CIFactory.o): $(CLINGCOMPDH)
|
$(call stripsrc,$(MODDIR)/lib/Interpreter/CIFactory.o): $(CLINGCOMPDH)
|
||||||
$(call stripsrc,$(MODDIR)/lib/Interpreter/CIFactory.o): CLINGCXXFLAGS += -I$(dir $(CLINGCOMPDH))
|
$(call stripsrc,$(MODDIR)/lib/Interpreter/CIFactory.o): CLINGCXXFLAGS += -I$(dir $(CLINGCOMPDH)) -pthread
|
||||||
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): $(CLINGCOMPDH)
|
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): $(CLINGCOMPDH)
|
||||||
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): CLINGCXXFLAGS += -I$(dir $(CLINGCOMPDH))
|
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): CLINGCXXFLAGS += -I$(dir $(CLINGCOMPDH))
|
||||||
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): CLINGCXXFLAGS += -DCLING_VERSION=$(CLING_VERSION)
|
$(call stripsrc,$(MODDIR)/lib/Interpreter/Interpreter.o): CLINGCXXFLAGS += -DCLING_VERSION=$(CLING_VERSION)
|
||||||
|
@ -333,6 +333,9 @@ namespace {
|
|||||||
Opts.CPlusPlus11 = 1;
|
Opts.CPlusPlus11 = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _REENTRANT
|
||||||
|
Opts.POSIXThreads = 1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetClingTargetLangOpts(LangOptions& Opts,
|
static void SetClingTargetLangOpts(LangOptions& Opts,
|
||||||
|
@ -36,7 +36,7 @@ $(ObjRootDir)/cling-compiledata.h: FORCE
|
|||||||
|
|
||||||
$(ObjRootDir)/RuntimeException.o: CXX.Flags := $(subst -fno-exceptions,,$(CXX.Flags))
|
$(ObjRootDir)/RuntimeException.o: CXX.Flags := $(subst -fno-exceptions,,$(CXX.Flags))
|
||||||
$(ObjRootDir)/CIFactory.o: $(ObjRootDir)/cling-compiledata.h
|
$(ObjRootDir)/CIFactory.o: $(ObjRootDir)/cling-compiledata.h
|
||||||
$(ObjRootDir)/CIFactory.o: CXX.Flags += -I$(ObjRootDir)
|
$(ObjRootDir)/CIFactory.o: CXX.Flags += -I$(ObjRootDir) -pthread
|
||||||
$(ObjRootDir)/Interpreter.o: $(ObjRootDir)/cling-compiledata.h
|
$(ObjRootDir)/Interpreter.o: $(ObjRootDir)/cling-compiledata.h
|
||||||
$(ObjRootDir)/Interpreter.o: CXX.Flags += -I$(ObjRootDir)
|
$(ObjRootDir)/Interpreter.o: CXX.Flags += -I$(ObjRootDir)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user