Skip to content
Snippets Groups Projects
Verified Commit a41f9304 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Update to use llvm-project

parent ccefd458
No related branches found
No related tags found
No related merge requests found
GIT=https://gitlab.redox-os.org/redox-os/llvm.git GIT=https://gitlab.redox-os.org/redox-os/llvm-project.git
GIT_UPSTREAM=https://github.com/rust-lang/llvm.git GIT_UPSTREAM=https://github.com/rust-lang/llvm-project.git
BRANCH=redox BRANCH=redox
function recipe_version { function recipe_version {
...@@ -19,7 +19,7 @@ function recipe_prepare { ...@@ -19,7 +19,7 @@ function recipe_prepare {
function recipe_build { function recipe_build {
native="$(realpath ../native.cmake)" native="$(realpath ../native.cmake)"
source="$(realpath ../source)" source="$(realpath ../source/llvm)"
sysroot="$(realpath ../sysroot)" sysroot="$(realpath ../sysroot)"
CMAKE_ARGS=( CMAKE_ARGS=(
-DCMAKE_AR="$(which "${AR}")" -DCMAKE_AR="$(which "${AR}")"
...@@ -60,8 +60,10 @@ function recipe_build { ...@@ -60,8 +60,10 @@ function recipe_build {
-I"$sysroot/include" -I"$sysroot/include"
-Wno-dev -Wno-dev
) )
set -x
cmake "${CMAKE_ARGS[@]}" "$source" cmake "${CMAKE_ARGS[@]}" "$source"
make -j$(nproc) make -j$(nproc)
set +x
skip=1 skip=1
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment