From be8787e13ef8e13b65ae07d7c4c3ca02840a48be Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Fri, 12 Jan 2024 19:38:30 -0800 Subject: [PATCH] update --- tools/ci_build/build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 8ae0fd2bb53aa..34b97e4809565 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -1524,11 +1524,11 @@ def generate_build_tree( if compile_flag.startswith("/D"): cudaflags.append(compile_flag) else: - cuda_compile_flags_str =cuda_compile_flags_str + " " + compile_flag - if len(cuda_compile_flags_str) !=0: - cudaflags.append("-Xcompiler=\"%s\"" % cuda_compile_flags_str) + cuda_compile_flags_str = cuda_compile_flags_str + " " + compile_flag + if len(cuda_compile_flags_str) != 0: + cudaflags.append('-Xcompiler="%s"' % cuda_compile_flags_str) elif is_linux() or is_macOS(): - if is_linux(): + if is_linux() and not args.use_rocm: ldflags = ["-Wl,-Bsymbolic-functions", "-Wl,-z,relro", "-Wl,-z,now"] else: ldflags = []