Browse Source

Try `llvm-config-11` in the Makefil

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

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

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

+ 2 - 2
Makefile

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