]> rtime.felk.cvut.cz Git - hercules2020/hercules-compiler.git/blobdiff - Makefile
Build libpremnotify before the compiler
[hercules2020/hercules-compiler.git] / Makefile
index 095aa74887794bd56132f561ad0169f127157d9c..819ed3923a4b880d5715dc06acd3b4f1d1faf2b8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
 PREFIX ?= $(HOME)/opt/hercules-compiler
 TMP_DESTDIR = $(CURDIR)/install
 
-all: passes libpremnotify-cpu
+all: libpremnotify-cpu
+all: passes
 
 llvm-clang: build/bin/opt
 
@@ -48,6 +49,8 @@ build_native/build.ninja: | build_native
                -DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_RTTI=ON \
                -DCMAKE_CXX_FLAGS='-DHERCULES_PASS_ROOT=\"$(PREFIX)/lib/hercules\"' \
                -G "Ninja" $(CURDIR)/llvm
+
+libpremnotify-cpu: export CC=$(DEB_HOST_GNU_TYPE)-gcc
 endif