Skip to content

Instantly share code, notes, and snippets.

@gahr
Created August 8, 2023 09:01
Show Gist options
  • Save gahr/b59b536dd4c88c3aeb88ddf8117adc88 to your computer and use it in GitHub Desktop.
Save gahr/b59b536dd4c88c3aeb88ddf8117adc88 to your computer and use it in GitHub Desktop.
# 28jul23 Software Lab. Alexander Burger
CC = clang15
PIL = ../pil # pil
ASM = opt15 -O3 # llvm-as
LLC = llc15
LINK = llvm-link15
MAIN = -L/usr/local/lib -rdynamic -lc -lutil -lm -ldl -lreadline -lffi
SHARED = -shared
STRIP = strip
LLVM = $(shell llvm-config15 --version | cut -d. -f1)
ifeq ($(shell test $(LLVM) -ge 15 -a $(LLVM) -lt 18; echo $$?), 0)
ASM += -opaque-pointers
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment