fix(bazel): use param file for compile (#1373)

* fixes issues on windows when dealing with many dependencies causing a
  'command line too long' error
This commit is contained in:
Ezekiel Warren
2024-04-22 11:19:11 -07:00
committed by GitHub
parent 176dec4875
commit ad59642673
46 changed files with 280 additions and 1 deletions

View File

@@ -13,6 +13,9 @@ Set-Location test_external
bazel build //:hello-world-wasm
if (-not $?) { Exit $LastExitCode }
bazel build //long_command_line:long_command_line_wasm
if (-not $?) { Exit $LastExitCode }
bazel build //:hello-embind-wasm --compilation_mode dbg # debug
if (-not $?) { Exit $LastExitCode }

View File

@@ -26,9 +26,10 @@ bazel build //hello-world:hello-world-wasm-simd
cd test_external
bazel build //:hello-world-wasm
bazel build //long_command_line:long_command_line_wasm
bazel build //:hello-embind-wasm --compilation_mode dbg # debug
# Test use of the closure compiler
bazel build //:hello-embind-wasm --compilation_mode opt # release
# This function should not be minified if the externs file is loaded correctly.
grep "customJSFunctionToTestClosure" bazel-bin/hello-embind-wasm/hello-embind.js
grep "customJSFunctionToTestClosure" bazel-bin/hello-embind-wasm/hello-embind.js

View File

@@ -25,4 +25,5 @@ bazel build //hello-world:hello-world-wasm
bazel build //hello-world:hello-world-wasm-simd
cd test_external
bazel build //long_command_line:long_command_line_wasm
bazel build //:hello-world-wasm