search for: llvm_cxx_flags

Displaying 1 result from an estimated 1 matches for "llvm_cxx_flags".

2012 Dec 27
1
[LLVMdev] Throwing an exception from JITed code, and catching in C++
...ToFunction(throwsIntFunction)); if (!throwsInt) { printf("could not get pointer to function\n"); return 1; } try { throwsInt(); } catch (int ex) { printf("caught an int\n"); } } $ cat Makefile ################ LLVM_CXX_FLAGS=$(shell $(LLVM_BIN)/llvm-config --cxxflags) LLVM_LIBS=$(shell $(LLVM_BIN)/llvm-config --libs) LLVM_LD_FLAGS=$(shell $(LLVM_BIN)/llvm-config --ldflags) all : tested .PHONY: clean clean: rm thrower.s thrower.s.bc catcher tested thrower.s : thrower.cpp Makefile $(LLVM_BIN)/clang -S -emit-ll...