Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Jan 13, 2024
1 parent be8787e commit ac94265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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 = []
Expand Down

0 comments on commit ac94265

Please sign in to comment.