Skip to content

Commit

Permalink
add ld linker flag --long-plt for armhf build
Browse files Browse the repository at this point in the history
  • Loading branch information
aoirint committed Jun 27, 2022
1 parent c47d055 commit 2750a1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
cc_version: "8"
cxx_version: "8"
arch: arm-linux-gnueabihf
cmake_additional_options: -DARMHF=ON

- os: ubuntu-18.04
device: cpu-arm64
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ if(DIRECTML)
determine_target_architecture(DML_ARCH)
endif()

option(ARMHF "Enables building for ARMHF" OFF)
if(ARMHF)
# https://github.com/VOICEVOX/voicevox_core/issues/132
add_link_options("-Xlinker" "--long-plt")
endif()

add_subdirectory(core)
add_subdirectory(open_jtalk/src)

Expand Down

0 comments on commit 2750a1c

Please sign in to comment.