diff options
Diffstat (limited to 'main/llvm/APKBUILD')
-rw-r--r-- | main/llvm/APKBUILD | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/main/llvm/APKBUILD b/main/llvm/APKBUILD index 9e6d6b901a..c5fdc8e283 100644 --- a/main/llvm/APKBUILD +++ b/main/llvm/APKBUILD @@ -214,6 +214,8 @@ build() { CFLAGS="" CXXFLAGS="-fno-devirtualize" LDFLAGS="" + : ${CC:=$(which gcc)} + : ${CXX:=$(which g++)} # The cmake logic appears to use the result of config.guess in a few places # even though we override the various triple settings manually. export CBUILD @@ -225,6 +227,8 @@ build() { msg "Compiling bootstrap compiler" cmake -G "Unix Makefiles" -Wno-dev ${_cmake_bootstrap_flags} \ + -DCMAKE_C_COMPILER="${CC}" \ + -DCMAKE_CXX_COMPILER="${CXX}" \ -DCMAKE_C_FLAGS="${CFLAGS}" \ -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \ -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \ @@ -255,10 +259,7 @@ build() { "${_srcdir}" || return 1 make || return 1 - - # llvm cheks fails on PaX kernels - # make check-llvm || return 1 - + make check-llvm || return 1 make check-clang || return 1 # 27 failures, all related to clang-tidy # make check-clang-tools || return 1 |