Browse Source

Modify flags in Makefile

gingerBill 4 years ago
parent
commit
cde334ada3
2 changed files with 5 additions and 5 deletions
  1. 1 1
      .github/workflows/ci.yml
  2. 4 4
      Makefile

+ 1 - 1
.github/workflows/ci.yml

@@ -7,7 +7,7 @@ jobs:
     steps:
     steps:
       - uses: actions/checkout@v1
       - uses: actions/checkout@v1
       - name: Download LLVM
       - name: Download LLVM
-        run: sudo apt-get install llvm-11 llvm-11
+        run: sudo apt-get install libllvm-11 llvm-11
       - name: build odin
       - name: build odin
         run: make release
         run: make release
       - name: Odin run
       - name: Odin run

+ 4 - 4
Makefile

@@ -8,12 +8,12 @@ OS=$(shell uname)
 
 
 ifeq ($(OS), Darwin)
 ifeq ($(OS), Darwin)
 	LDFLAGS:=$(LDFLAGS) -liconv
 	LDFLAGS:=$(LDFLAGS) -liconv
-	CFLAGS:=$(CFLAGS) $(shell llvm-config --cflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM
-	LDFLAGS:=$(LDFLAGS) $(shell llvm-config --ldflags --libs) -lLLVM-C
+	CFLAGS:=$(CFLAGS) $(shell llvm-config --cxxflags --ldflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM
+	LDFLAGS:=$(LDFLAGS) $(shell llvm-config) -lLLVM-C
 endif
 endif
 ifeq ($(OS), Linux)
 ifeq ($(OS), Linux)
-	CFLAGS:=$(CFLAGS) $(shell llvm-config --cflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM
-	LDFLAGS:=$(LDFLAGS) $(shell llvm-config --ldflags --libs) -lLLVM-C
+	CFLAGS:=$(CFLAGS) $(shell llvm-config --cxxflags --ldflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM
+	LDFLAGS:=$(LDFLAGS) $(shell llvm-config) -lLLVM-C
 endif
 endif
 
 
 all: debug demo
 all: debug demo