Skip to content

Commit

Permalink
Simplify the app build a little.
Browse files Browse the repository at this point in the history
Change-Id: I16bf812f5e01a3098d0644298f606970d7e7321a
Reviewed-on: https://code-review.googlesource.com/c/re2/+/61470
Reviewed-by: Paul Wankadia <[email protected]>
Reviewed-by: Alex Chernyakhovsky <[email protected]>
  • Loading branch information
junyer committed Jun 30, 2023
1 parent 231c117 commit 5a0e23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cc_binary(
linkopts = [
"--bind",
"-sENVIRONMENT=web",
"-sSINGLE_FILE=1",
"-sMODULARIZE=1",
"-sEXPORT_ES6=1",
"-sEXPORT_NAME=loadModule",
Expand Down
8 changes: 1 addition & 7 deletions app/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ else
${BAZEL} build --compilation_mode=opt \
--copt=-fno-stack-protector \
-- :all
# Bazel doesn't retain the `_re2.wasm` artifact;
# we have to redo the link command to obtain it.
pushd ..
emcc @bazel-bin/app/_re2.js-2.params
cd bazel-bin/app
cp _re2.js _re2.wasm ${DSTDIR}
popd
cp ../bazel-bin/app/_re2.js ${DSTDIR}
# Clean up the sundry Bazel output directories.
${BAZEL} clean --expunge
cp app.ts index.html _re2.d.ts ${DSTDIR}
Expand Down

0 comments on commit 5a0e23b

Please sign in to comment.