-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make CcInfo/cc dep in nodejs toolchain opt-in via include_header…
…s attribute
- Loading branch information
1 parent
96343c9
commit 6d8c697
Showing
24 changed files
with
219 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Specifies desired output mode for running tests. | ||
# Valid values are | ||
# 'summary' to output only test status summary | ||
# 'errors' to also print test logs for failed tests | ||
# 'all' to print logs for all tests | ||
# 'streamed' to output logs for all tests in real time | ||
# (this will force tests to be executed locally one at a time regardless of --test_strategy value). | ||
common --test_output=errors | ||
|
||
# Turn on --incompatible_strict_action_env which was on by default | ||
# in Bazel 0.21.0 but turned off again in 0.22.0. Follow | ||
# https://github.com/bazelbuild/bazel/issues/7026 for more details. | ||
# This flag is needed to so that the bazel cache is not invalidated | ||
# when running bazel via `yarn bazel`. | ||
# See https://github.com/angular/angular/issues/27514. | ||
common --incompatible_strict_action_env | ||
|
||
# Turn off legacy external runfiles | ||
# This prevents accidentally depending on this feature, which Bazel will remove. | ||
common --nolegacy_external_runfiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.bazelversion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cc_test( | ||
name = "using_headers_test", | ||
srcs = ["using_headers.cc"], | ||
copts = select({ | ||
"@platforms//os:windows": ["/std:c++14"], | ||
"//conditions:default": ["-std=c++14"], | ||
}), | ||
target_compatible_with = select({ | ||
# Windows does not ship headers in the release artifact so this won't work yet. | ||
"@platforms//os:windows": ["@platforms//:incompatible"], | ||
"//conditions:default": [], | ||
}), | ||
deps = ["@rules_nodejs//nodejs/headers:current_node_cc_headers"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
bazel_dep(name = "rules_nodejs", version = "0.0.0", dev_dependency = True) | ||
local_path_override( | ||
module_name = "rules_nodejs", | ||
path = "../..", | ||
) | ||
|
||
bazel_dep(name = "platforms", version = "0.0.10", dev_dependency = True) | ||
|
||
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True) | ||
node.toolchain(include_headers = True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
local_repository( | ||
name = "rules_nodejs", | ||
path = "../..", | ||
) | ||
|
||
load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains") | ||
|
||
nodejs_register_toolchains(include_headers = True) | ||
|
||
http_archive( | ||
name = "bazel_skylib", | ||
sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f", | ||
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz"], | ||
) |
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
# | ||
# RBE configuration | ||
# | ||
# See https://github.com/bazelbuild/continuous-integration/releases/tag/rules-1.0.0 | ||
http_archive( | ||
name = "bazelci_rules", | ||
sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e", | ||
strip_prefix = "bazelci_rules-1.0.0", | ||
url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz", | ||
) | ||
|
||
load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig") | ||
|
||
# Creates toolchain configuration for remote execution with BuildKite CI | ||
# for rbe_ubuntu1604 | ||
rbe_preconfig( | ||
name = "buildkite_config", | ||
toolchain = "ubuntu1804-bazel-java11", | ||
) |
Oops, something went wrong.