Skip to content

Commit

Permalink
Warn when not generating toolchain (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthab authored Mar 13, 2024
1 parent 6b94520 commit 87222dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolchain/internal/configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ def _cc_toolchain_str(
else:
# We are trying to cross-compile without a sysroot, let's bail.
# TODO: Are there situations where we can continue?
# trunk-ignore(buildifier/print): See #219.
print("Not generating cross-compiling toolchain for (%s, %s) because sysroot is not provided." % (target_os, target_arch))
return ""

extra_files_str = "\":internal-use-files\""
Expand Down

0 comments on commit 87222dc

Please sign in to comment.