Skip to content

Commit

Permalink
debug: build without -DLLVM_USE_INTEL_JITEVENTS=ON
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 27, 2021
1 parent 72a4f43 commit d6e3ab7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ sed -i.bak "s/NOT APPLE AND NOT ARG_SONAME/NOT ARG_SONAME/g" cmake/modules/AddLL
mkdir build
cd build

if [[ "$target_platform" == "linux-64" ]]; then
CMAKE_ARGS="${CMAKE_ARGS} -DLLVM_USE_INTEL_JITEVENTS=ON"
fi
# deactivate due to https://bugs.llvm.org/show_bug.cgi?id=51859
# if [[ "$target_platform" == "linux-64" ]]; then
# CMAKE_ARGS="${CMAKE_ARGS} -DLLVM_USE_INTEL_JITEVENTS=ON"
# fi

if [[ "$CC_FOR_BUILD" != "" && "$CC_FOR_BUILD" != "$CC" ]]; then
CMAKE_ARGS="${CMAKE_ARGS} -DCROSS_TOOLCHAIN_FLAGS_NATIVE=-DCMAKE_C_COMPILER=$CC_FOR_BUILD;-DCMAKE_CXX_COMPILER=$CXX_FOR_BUILD;-DCMAKE_C_FLAGS=-O2;-DCMAKE_CXX_FLAGS=-O2;-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath,${BUILD_PREFIX}/lib;-DCMAKE_MODULE_LINKER_FLAGS=;-DCMAKE_SHARED_LINKER_FLAGS=;-DCMAKE_STATIC_LINKER_FLAGS=;"
Expand Down

0 comments on commit d6e3ab7

Please sign in to comment.