Add closure example for wasm_cc_binary (#941)

* Stub out addition of closure_externs_file option in wasm_cc_binary

* WIP

* args are passed, externs cannot be found

* try location

* update tests
This commit is contained in:
Kevin Lubick
2022-02-17 13:16:18 -05:00
committed by GitHub
parent d7d8fef23e
commit 600dc4d912
4 changed files with 18 additions and 0 deletions

View File

@@ -27,5 +27,8 @@ bazel build //hello-world:hello-world-wasm-simd
cd test_external
bazel build //:hello-world-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