Skip to content

Commit

Permalink
Add debug code.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed Dec 4, 2023
1 parent 2205738 commit 2be95f9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sh/posix.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def _sh_posix_config_impl(repository_ctx):
cpu = get_cpu_value(repository_ctx)
env = repository_ctx.os.environ

# DEBUG BEGIN
print("*** CHUCK _sh_posix_config_impl cpu: ", cpu)
# DEBUG END

windows_sh_dir = None
if cpu == "x64_windows":
windows_sh_dir = _windows_detect_sh_dir(repository_ctx)
Expand Down Expand Up @@ -179,15 +183,15 @@ toolchain(
if cmd_path
]),
arch = {
"darwin_arm64": "arm64",
"arm64_windows": "arm64",
"aarch64": "arm64",
"arm64_windows": "arm64",
"darwin_arm64": "arm64",
}.get(cpu, "x86_64"),
os = {
"arm64_windows": "windows",
"darwin": "osx",
"darwin_arm64": "osx",
"x64_windows": "windows",
"arm64_windows": "windows",
}.get(cpu, "linux"),
toolchain_type = TOOLCHAIN_TYPE,
))
Expand Down

0 comments on commit 2be95f9

Please sign in to comment.