diff --git a/Birdee/KaleidoscopeJIT.cpp b/Birdee/KaleidoscopeJIT.cpp index f56597d..9c71bcb 100644 --- a/Birdee/KaleidoscopeJIT.cpp +++ b/Birdee/KaleidoscopeJIT.cpp @@ -31,6 +31,7 @@ namespace llvm { void KaleidoscopeJIT::setTargetMachine(Module * m) { m->setDataLayout(TM->createDataLayout()); + m->setTargetTriple(llvm::sys::getProcessTriple()); } KaleidoscopeJIT::ModuleHandleT KaleidoscopeJIT::addModule(std::unique_ptr M) { diff --git a/BirdeeRuntime/Makefile b/BirdeeRuntime/Makefile index f5262cf..06a2558 100644 --- a/BirdeeRuntime/Makefile +++ b/BirdeeRuntime/Makefile @@ -9,5 +9,5 @@ clean: # If .o does not exist, don't stop rm -f *.o rm -f $(LIB_DIR)/libBirdeeRuntime.a - $(LIB_DIR)/dllmain.cpp + rm -f $(LIB_DIR)/dllmain.cpp remake: clean $(LIB_DIR)/libBirdeeRuntime.a $(LIB_DIR)/dllmain.cpp