Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Jan 30, 2025
1 parent e6ec079 commit eaa66b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,10 @@ def generate_build_tree(
"-DANDROID_MIN_SDK=" + str(args.android_api),
"-DANDROID_USE_LEGACY_TOOLCHAIN_FILE=false",
]
if args.disable_rtti:
add_default_definition(cmake_extra_defines, "CMAKE_ANDROID_RTTI", "OFF")
if args.disable_exceptions:
add_default_definition(cmake_extra_defines, "CMAKE_ANDROID_EXCEPTIONS", "OFF")
if not args.use_vcpkg:
cmake_args.append("-DCMAKE_TOOLCHAIN_FILE=" + android_toolchain_cmake_path)
else:
Expand Down

0 comments on commit eaa66b7

Please sign in to comment.