I am trying to get LLVM bitcode Example.bc using -emit-llvm -S option.
but I am building my file using a static library
CXXFLAGS += -emit-llvm -S
@Clang++ $(CFLAGS) $(CXXFLAGS) Example.cpp -L$(LIB_PATH) -lpthread
I get the error -emit-llvm can not be used while linking . How can I get I get LLVM IR while linking to static library ?