diff options
Diffstat (limited to 'main/llvm/APKBUILD')
-rw-r--r-- | main/llvm/APKBUILD | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/main/llvm/APKBUILD b/main/llvm/APKBUILD index 1166f0f64c..ce33eba8ed 100644 --- a/main/llvm/APKBUILD +++ b/main/llvm/APKBUILD @@ -44,8 +44,7 @@ fi _builddir="$srcdir"/build -_bootstrap_prefix="$srcdir"/bootstrap - +_bootstrapdir="$srcdir"/bootstrap _cmake_flags="\ -DCMAKE_BUILD_TYPE=Release \ @@ -83,7 +82,6 @@ _cmake_common_flags="\ # built as part of the default target). _cmake_bootstrap_flags="\ ${_cmake_common_flags} \ - -DCMAKE_INSTALL_PREFIX=${_bootstrap_prefix} \ -DLLVM_TARGETS_TO_BUILD=host \ -DBUILD_SHARED_LIBS=NO \ -DCLANG_ENABLE_ARCMT=NO \ @@ -230,8 +228,8 @@ build() { ffi_include_dir="$(pkg-config --cflags-only-I libffi | sed 's|^-I||g')" - mkdir -p "$_builddir" - cd "$_builddir" + mkdir -p "$_bootstrapdir" "$_builddir" + cd "$_bootstrapdir" msg "Compiling bootstrap compiler" cmake -G "Unix Makefiles" -Wno-dev ${_cmake_bootstrap_flags} \ @@ -250,17 +248,12 @@ build() { paxmark m bin/lli paxmark m bin/lli-child-target - make install || return 1 - cflags="${orig_cflags} -DNDEBUG" cxxflags="${orig_cxxflags} -DNDEBUG" - CC="${_bootstrap_prefix}/bin/clang" - CXX="${_bootstrap_prefix}/bin/clang++" + CC="${_bootstrapdir}/bin/clang" + CXX="${_bootstrapdir}/bin/clang++" - cd .. - rm -rf "$_builddir" - mkdir -p "$_builddir" - cd "$_builddir" + cd ../"$_builddir" msg "Compiling final compiler" cmake -G "Unix Makefiles" -Wno-dev ${_cmake_final_flags} \ |