From 279762134141c87324d684e53df2004462c67254 Mon Sep 17 00:00:00 2001 From: Steffen Michels Date: Tue, 29 Mar 2022 16:20:18 +0200 Subject: [PATCH] add the compiler as library to bundle-complete --- clean-bundle-complete/common/dependencies.txt | 1 + clean-lib-compiler/common/build.sh | 18 ++++++++++++++++++ clean-lib-compiler/common/dependencies.txt | 1 + clean-lib-compiler/common/git-sources.txt | 2 ++ clean-lib-compiler/linux-arm64 | 1 + clean-lib-compiler/linux-x64 | 1 + clean-lib-compiler/linux-x86 | 1 + 7 files changed, 25 insertions(+) create mode 100755 clean-lib-compiler/common/build.sh create mode 100644 clean-lib-compiler/common/dependencies.txt create mode 100644 clean-lib-compiler/common/git-sources.txt create mode 120000 clean-lib-compiler/linux-arm64 create mode 120000 clean-lib-compiler/linux-x64 create mode 120000 clean-lib-compiler/linux-x86 diff --git a/clean-bundle-complete/common/dependencies.txt b/clean-bundle-complete/common/dependencies.txt index f59cb9c..553ec10 100644 --- a/clean-bundle-complete/common/dependencies.txt +++ b/clean-bundle-complete/common/dependencies.txt @@ -12,5 +12,6 @@ clean-lib-itasks clean-lib-platform clean-lib-stdlib clean-lib-tcpip +clean-lib-compiler clean-test clean-test-properties diff --git a/clean-lib-compiler/common/build.sh b/clean-lib-compiler/common/build.sh new file mode 100755 index 0000000..792efbb --- /dev/null +++ b/clean-lib-compiler/common/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e +mkdir -p target/clean-lib-compiler + +# Add libraries +mkdir -p target/clean-lib-compiler/lib +cp -r src/compiler-master target/clean-lib-compiler/lib/compiler +cp -r src/compiler-itask target/clean-lib-compiler/lib/compiler-itask + +function build_backend() { + make -C $1/main/Unix + make -C $1/backendC/CleanCompilerSources -f Makefile.linux64 + mkdir -p $1/backend/Clean\ System\ Files + ln -fs $1/backendC/CleanCompilerSources/backend.a $1/backend/Clean\ System\ Files/backend_library +} + +build_backend target/clean-lib-compiler/lib/compiler +build_backend target/clean-lib-compiler/lib/compiler-itask diff --git a/clean-lib-compiler/common/dependencies.txt b/clean-lib-compiler/common/dependencies.txt new file mode 100644 index 0000000..7bbf86d --- /dev/null +++ b/clean-lib-compiler/common/dependencies.txt @@ -0,0 +1 @@ +clean-base diff --git a/clean-lib-compiler/common/git-sources.txt b/clean-lib-compiler/common/git-sources.txt new file mode 100644 index 0000000..a494bf7 --- /dev/null +++ b/clean-lib-compiler/common/git-sources.txt @@ -0,0 +1,2 @@ +https://gitlab.science.ru.nl/clean-compiler-and-rts/compiler master +https://gitlab.science.ru.nl/clean-compiler-and-rts/compiler itask diff --git a/clean-lib-compiler/linux-arm64 b/clean-lib-compiler/linux-arm64 new file mode 120000 index 0000000..d66298e --- /dev/null +++ b/clean-lib-compiler/linux-arm64 @@ -0,0 +1 @@ +common \ No newline at end of file diff --git a/clean-lib-compiler/linux-x64 b/clean-lib-compiler/linux-x64 new file mode 120000 index 0000000..d66298e --- /dev/null +++ b/clean-lib-compiler/linux-x64 @@ -0,0 +1 @@ +common \ No newline at end of file diff --git a/clean-lib-compiler/linux-x86 b/clean-lib-compiler/linux-x86 new file mode 120000 index 0000000..d66298e --- /dev/null +++ b/clean-lib-compiler/linux-x86 @@ -0,0 +1 @@ +common \ No newline at end of file -- GitLab