]> rtime.felk.cvut.cz Git - hercules2020/hercules-compiler.git/commitdiff
Initial commit
authorIng. Michal Sojka <sojkam1@grid-04.cluster>
Wed, 2 May 2018 08:47:07 +0000 (10:47 +0200)
committerIng. Michal Sojka <sojkam1@grid-04.cluster>
Wed, 2 May 2018 08:47:07 +0000 (10:47 +0200)
.gitmodules [new file with mode: 0644]
Makefile [new file with mode: 0644]
clang [new submodule]
llvm [new submodule]
openmp [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..f3f772b
--- /dev/null
@@ -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 (file)
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 (submodule)
index 0000000..91f50ec
--- /dev/null
+++ b/clang
@@ -0,0 +1 @@
+Subproject commit 91f50ec6a72e172bcdf3a1001007ffe7f431edbd
diff --git a/llvm b/llvm
new file mode 160000 (submodule)
index 0000000..0a04c5a
--- /dev/null
+++ b/llvm
@@ -0,0 +1 @@
+Subproject commit 0a04c5a555392a6a42b25a8e12e3b2d2ccb8257e
diff --git a/openmp b/openmp
new file mode 160000 (submodule)
index 0000000..351725d
--- /dev/null
+++ b/openmp
@@ -0,0 +1 @@
+Subproject commit 351725ddac1bb9b309a88c12db82242a6a0e7c03