Skip to content

Commit fc5bbe0

Browse files
author
Elliot Evans
committed
Fix SIMD CanvasKit build to output to the expected directory.
the BUILD_DIR in compile.sh was not being set properly prior to this change, resulting in build output in the `skia/out/canvaskit_wasm` directory instead of the `skia/out/canvaskit_wasm_experimental_simd` directory. Change-Id: Idb599d4885a16c10848e4c90954e778f63065c45 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/306299 Reviewed-by: Kevin Lubick <kjlubick@google.com> Reviewed-by: Nathaniel Nifong <nifong@google.com>
1 parent 52ea577 commit fc5bbe0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/canvaskit/compile.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,16 @@ elif [[ $@ == *profiling* ]]; then
4747
echo "Building a build for profiling"
4848
RELEASE_CONF+=" --profiling-funcs --closure 0"
4949
BUILD_DIR=${BUILD_DIR:="out/canvaskit_wasm_profile"}
50+
elif [[ $@ == *simd* ]]; then
51+
echo "Building with SIMD operations"
52+
BUILD_DIR=${BUILD_DIR:="out/canvaskit_wasm_experimental_simd"}
5053
else
5154
BUILD_DIR=${BUILD_DIR:="out/canvaskit_wasm"}
5255
fi
5356

5457
if [[ $@ == *simd* ]]; then
55-
echo "Building with SIMD operations"
5658
RELEASE_CONF+=" -msimd128"
5759
EXTRA_CFLAGS+=" \"-msimd128\""
58-
BUILD_DIR=${BUILD_DIR:="out/canvaskit_wasm_experimental_simd"}
5960
fi
6061

6162
mkdir -p $BUILD_DIR

0 commit comments

Comments
 (0)