-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: onnxruntime 1.17.0をビルドできるように (#36)
* Update: パラメータ名変更に追従 * Change: 修正版build.pyのリポジトリに向けてみる * Change: ndkを更新してみる * Update: gccとg++を12に更新 * Add: ppaを追加 * Fix: https -> http * Change: gcc 10にしてみる * Change: patch式に変更 * Fix: パスを修正 * Fix: diffの元を修正 * Fix: patchを修正 * Delete: 分岐を削除 * 1_17_0_android_arm64_build.patch --------- Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
- Loading branch information
1 parent
6947b16
commit 27fe9f0
Showing
2 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py | ||
index 31f242cce..c42ba9386 100644 | ||
--- a/tools/ci_build/build.py | ||
+++ b/tools/ci_build/build.py | ||
@@ -987,6 +987,8 @@ def generate_build_tree( | ||
disable_optional_type = "optional" in types_to_disable | ||
disable_sparse_tensors = "sparsetensor" in types_to_disable | ||
|
||
+ is_x86_64_build = not (args.android or args.ios or args.build_wasm or args.arm or args.arm64 or args.arm64ec) | ||
+ | ||
cmake_args += [ | ||
"-Donnxruntime_RUN_ONNX_TESTS=" + ("ON" if args.enable_onnx_tests else "OFF"), | ||
"-Donnxruntime_GENERATE_TEST_REPORTS=ON", | ||
@@ -1569,7 +1571,7 @@ def generate_build_tree( | ||
"-pipe", | ||
"-ggdb3", | ||
] | ||
- if is_linux() and platform.machine() == "x86_64": | ||
+ if is_linux() and is_x86_64_build: | ||
# The following flags needs GCC 8 and newer | ||
cflags += ["-fstack-clash-protection", "-fcf-protection"] | ||
cxxflags = cflags.copy() |