summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2019-09-25 22:22:48 +0200
committerBen Smith <binji@chromium.org>2019-09-25 16:22:48 -0400
commitbe24ea4d524905937bbc51b34aa8214cdd5ca22f (patch)
treeb34abdf5df2bef25a61f42e9d3e530790e56178c /Makefile
parent94d496755830b587f43e7154ee4ffaeb378138bf (diff)
downloadwabt-be24ea4d524905937bbc51b34aa8214cdd5ca22f.tar.gz
wabt-be24ea4d524905937bbc51b34aa8214cdd5ca22f.tar.bz2
wabt-be24ea4d524905937bbc51b34aa8214cdd5ca22f.zip
Attempt to locate Emscripten if EMSCRIPTEN_DIR is not set (#1153)
* Attempt to locate emscripten if EMSCRIPTEN_DIR is not set * Remove previous
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1bd9cf76..60c56e25 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ USE_NINJA ?= 0
FUZZ_BIN_DIR ?= ${ROOT_DIR}/afl-fuzz
GCC_FUZZ_CC := ${FUZZ_BIN_DIR}/afl-gcc
GCC_FUZZ_CXX := ${FUZZ_BIN_DIR}/afl-g++
-EMSCRIPTEN_DIR ?= ${ROOT_DIR}/emscripten
+EMSCRIPTEN_DIR ?= $(dir $(shell which emcc))
CMAKE_CMD ?= cmake
DEFAULT_SUFFIX = clang-debug