Skip to content

Commit

Permalink
Hotfix: C++版のLinux armhf向けコアを製品版でビルドできるようにする (#262)
Browse files Browse the repository at this point in the history
add ld linker flag --long-plt for armhf build
  • Loading branch information
aoirint authored Sep 2, 2022
1 parent 50082b6 commit 30b324c
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 @@ -100,6 +100,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 30b324c

Please sign in to comment.