diff options
author | tholenst <tholenst@google.com> | 2023-02-17 01:57:04 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-17 01:58:25 -0800 |
commit | 43bbc26eae04fa7799037556a65905524d9a8990 (patch) | |
tree | e3496cfd0345f158c884fdb644726f5ff5d6bd52 /kokoro | |
parent | f4f6a64e2903faf8c408e05db038475e28881cea (diff) | |
download | tink-43bbc26eae04fa7799037556a65905524d9a8990.tar.gz |
Add a "bazel clean --expunge" before compiling Javascript.
According to various sources on the internet this might help for the compilation problem we are having.
PiperOrigin-RevId: 510372025
Diffstat (limited to 'kokoro')
-rwxr-xr-x | kokoro/run_tests.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kokoro/run_tests.sh b/kokoro/run_tests.sh index 30cce8618..f0d18d945 100755 --- a/kokoro/run_tests.sh +++ b/kokoro/run_tests.sh @@ -92,6 +92,12 @@ run_java_apps_tests() { run_javascript_tests() { use_bazel "$(cat javascript/.bazelversion)" + # On MacOS, Javascript compilation fails with + # clang: error: unknown argument: '-fno-canonical-system-headers' + # The internet recommends to run "bazel clean --expunge" + if [[ "${PLATFORM}" == 'darwin' ]]; then + bazelisk clean --expunge + fi ./kokoro/testutils/run_bazel_tests.sh "javascript" } |