mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 20:28:15 +00:00
Update Makefile to compile with LLVM C API
This commit is contained in:
@@ -8,6 +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)
|
||||||
|
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
|
endif
|
||||||
|
|
||||||
all: debug demo
|
all: debug demo
|
||||||
|
|||||||
Reference in New Issue
Block a user