From: Ing. Michal Sojka Date: Wed, 2 May 2018 08:47:07 +0000 (+0200) Subject: Initial commit X-Git-Tag: debian/2017.11-2~19 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hercules2020/hercules-compiler.git/commitdiff_plain/508d027f65f8eb5e30345824c6e79449854362f5 Initial commit --- 508d027f65f8eb5e30345824c6e79449854362f5 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f3f772b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +[submodule "llvm"] + path = llvm + url = https://iis-git.ee.ethz.ch/H2020-Compiler/llvm +[submodule "clang"] + path = clang + url = https://iis-git.ee.ethz.ch/H2020-Compiler/clang +[submodule "openmp"] + path = openmp + url = https://iis-git.ee.ethz.ch/H2020-Compiler/openmp diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c29ac49 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +PREFIX = $(HOME)/opt/hercules-compiler + +all: build/build.ninja + ninja -C build + +llvm/tools/clang: + ln -s ../../clang $@ + +llvm/projects/openmp: + ln -s ../../openmp $@ + +build: + mkdir $@ + +build/build.ninja: build llvm/tools/clang llvm/projects/openmp + cd $(@D) && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="$(PREFIX)" -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_BACKTRACES=ON -DLLVM_ENABLE_WERROR=OFF -DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_RTTI=ON -G "Ninja" $(CURDIR)/llvm diff --git a/clang b/clang new file mode 160000 index 0000000..91f50ec --- /dev/null +++ b/clang @@ -0,0 +1 @@ +Subproject commit 91f50ec6a72e172bcdf3a1001007ffe7f431edbd diff --git a/llvm b/llvm new file mode 160000 index 0000000..0a04c5a --- /dev/null +++ b/llvm @@ -0,0 +1 @@ +Subproject commit 0a04c5a555392a6a42b25a8e12e3b2d2ccb8257e diff --git a/openmp b/openmp new file mode 160000 index 0000000..351725d --- /dev/null +++ b/openmp @@ -0,0 +1 @@ +Subproject commit 351725ddac1bb9b309a88c12db82242a6a0e7c03