From ac9426584d1da82305dad28981ecd990397dc6d1 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Fri, 12 Jan 2024 20:14:37 -0800 Subject: [PATCH] update --- tools/ci_build/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 34b97e4809565..41ab23d655eea 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -1485,6 +1485,7 @@ def generate_build_tree( and not args.ios and not args.android and not args.build_wasm + and not args.use_rocm and not (is_linux() and platform.machine() != "aarch64" and platform.machine() != "x86_64") ): if is_windows(): @@ -1528,7 +1529,7 @@ def generate_build_tree( if len(cuda_compile_flags_str) != 0: cudaflags.append('-Xcompiler="%s"' % cuda_compile_flags_str) elif is_linux() or is_macOS(): - if is_linux() and not args.use_rocm: + if is_linux(): ldflags = ["-Wl,-Bsymbolic-functions", "-Wl,-z,relro", "-Wl,-z,now"] else: ldflags = []