diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-24 20:46:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-24 20:46:47 +0100 |
| commit | 4272fe5e85b504cd59df43f1cf463eb88e5fe7cb (patch) | |
| tree | bdc9b39199e408a93902a208cea46b62dbabaffb /Makefile | |
| parent | c29b643a58d3d31cae55a58a3efbbe2df5a111ad (diff) | |
Update Makefile to compile with LLVM C API
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -8,6 +8,12 @@ OS=$(shell uname) ifeq ($(OS), Darwin) LDFLAGS:=$(LDFLAGS) -liconv + CFLAGS:=$(CFLAGS) $(shell llvm-config --cflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM + LDFLAGS:=$(LDFLAGS) $(shell llvm-config --ldflags --libs) +endif +ifeq ($(OS), Linux) + CFLAGS:=$(CFLAGS) $(shell llvm-config --cflags) -DLLVM_BACKEND_SUPPORT -DUSE_NEW_LLVM_ABI_SYSTEM + LDFLAGS:=$(LDFLAGS) $(shell llvm-config --ldflags --libs) endif all: debug demo |