Fix clang warnings

This commit is contained in:
Zion Nimchuk 2020-03-19 00:49:40 -07:00 committed by Ivan
parent 5ba07ed50f
commit 27367dc493
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ if [ $COMPILER = "gcc" ]; then
# We need to set the following variables for LTO to link properly
export AR=/usr/bin/gcc-ar-9
export RANLIB=/usr/bin/gcc-ranlib-9
export CFLAGS="-fuse-linker-plugin"
else
export CC=${CLANG_BINARY}
export CXX=${CLANGXX_BINARY}
@ -33,7 +34,7 @@ else
export RANLIB=/usr/bin/llvm-ranlib-$LLVMVER
fi
export CFLAGS="-fuse-linker-plugin -fuse-ld=${LINKER}"
export CFLAGS="$CFLAGS -fuse-ld=${LINKER}"
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_LLVM_SUBMODULE=OFF -DUSE_COTIRE=OFF -DLLVM_DIR=llvmlibs/lib/cmake/llvm/ -DUSE_NATIVE_INSTRUCTIONS=OFF \
-DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CFLAGS" -DCMAKE_AR=$AR -DCMAKE_RANLIB=$RANLIB \