Skip to content

Commit

Permalink
Support Linux cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed May 30, 2024
1 parent ec52f77 commit 304fb78
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 @@ -1626,7 +1626,8 @@ def generate_build_tree(
"-pipe",
"-ggdb3",
]
if is_linux() and platform.machine() == "x86_64":
cross_arm = args.arm64 or args.arm64ec or args.arm
if is_linux() and platform.machine() == "x86_64" and not cross_arm:
# The following flags needs GCC 8 and newer
cflags += ["-fstack-clash-protection"]
if not args.rv64:
Expand Down

0 comments on commit 304fb78

Please sign in to comment.