Skip to content

Commit

Permalink
[build_local] Add argument to set --color option for Bazel (#776)
Browse files Browse the repository at this point in the history
* [build_local] Add argument to set `--color` option for Bazel

* [CI] Remove trigger on files in `deps/` for PRs
  • Loading branch information
giordano authored Feb 20, 2025
1 parent 83a2c1d commit 66b035e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
paths:
- '.github/workflows/CI.yml'
- 'deps/**'
- 'ext/**'
- 'lib/**'
- 'src/**'
Expand Down
5 changes: 5 additions & 0 deletions deps/build_local.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ s = ArgParseSettings()
help = "Extra options to be passed to Bazel. Can be used multiple times."
action = :append_arg
arg_type = String
"--color"
help = "Set to `yes` to enable color output, or `no` to disable it. Defaults to same color setting as the Julia process."
default = something(Base.have_color, false) ? "yes" : "no"
arg_type = String
end
#! format: on
parsed_args = parse_args(ARGS, s)
Expand Down Expand Up @@ -154,6 +158,7 @@ if cc_is_gcc && build_backend == "cuda"
end
end
end
push!(build_cmd_list, "--color=$(parsed_args["color"])")
push!(build_cmd_list, ":libReactantExtra.so")

run(Cmd(Cmd(build_cmd_list); dir=source_dir))
Expand Down

0 comments on commit 66b035e

Please sign in to comment.