Skip to content

Commit

Permalink
Android の test にも _LIBCPP_HARDENING_MODE の指定が必要だった
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Jan 17, 2024
1 parent 4f1f72d commit 8f54658
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,6 @@ def main():
elif platform.target.os == 'android':
# Android の場合は事前に用意したプロジェクトをビルドする
with cd(os.path.join(BASE_DIR, 'test', 'android')):
# TODO(enm10k): ここも _LIBCPP_HARDENING_MODE の指定が必要かもしれない
cmd(['./gradlew', '--no-daemon', 'assemble'])

if not args.no_lyra:
Expand Down
3 changes: 2 additions & 1 deletion test/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ android {
"-DANDROID_ABI=arm64-v8a",
"-DANDROID_CPP_FEATURES=exceptions rtti",
"-DANDROID_NDK=OFF",
"-DCMAKE_ANDROID_EXCEPTIONS=ON"
"-DCMAKE_ANDROID_EXCEPTIONS=ON",
"-DCMAKE_CXX_FLAGS='-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE'"
}
ndk {
abiFilters 'arm64-v8a'
Expand Down

0 comments on commit 8f54658

Please sign in to comment.