Skip to content

Commit

Permalink
[BOLT] Fix cross-compilation build
Browse files Browse the repository at this point in the history
Don't enable BOLT runtime when cross compiling as we don't
support this scenario yet.

Differential Revision: https://reviews.llvm.org/D158906
  • Loading branch information
rafaelauler committed Aug 26, 2023
1 parent 1376dfa commit b9deec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bolt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ set(BOLT_ENABLE_RUNTIME_default OFF)
if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64"
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
AND (CMAKE_SYSTEM_NAME STREQUAL "Linux"
OR CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
AND (NOT CMAKE_CROSSCOMPILING))
set(BOLT_ENABLE_RUNTIME_default ON)
endif()
option(BOLT_ENABLE_RUNTIME "Enable BOLT runtime" ${BOLT_ENABLE_RUNTIME_default})
Expand Down

0 comments on commit b9deec1

Please sign in to comment.