From 68766b1dc83afa956c9f295848a90d5df345303e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 4 Oct 2017 10:47:32 +0200 Subject: [PATCH] package/ci: fix Emscripten build breakage. --- package/ci/travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/ci/travis.yml b/package/ci/travis.yml index 071af4ccb..12aed934a 100644 --- a/package/ci/travis.yml +++ b/package/ci/travis.yml @@ -163,6 +163,9 @@ install: - if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "desktop" ]; then export PLATFORM_GL_API=CGL; fi - if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "ios-simulator" ]; then gem install xcpretty; fi - if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "emscripten" ]; then brew install emscripten && export LLVM=/usr/local/opt/emscripten/libexec/llvm/bin && emcc; fi +# Workaround for "Symbol not found: _futimens", found here: +# https://github.com/kripken/emscripten/issues/5418#issuecomment-333247709 +- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "emscripten" ]; then brew install llvm && rm /usr/local/opt/emscripten/libexec/llvm/bin/llvm-ar && ln -s /usr/local/opt/llvm/bin/llvm-ar /usr/local/opt/emscripten/libexec/llvm/bin/llvm-ar; fi - if [ "$TARGET" == "desktop" ] || [ "$TARGET" == "desktop-sanitizers" ] || [ "$TARGET" == "desktop-gles" ]; then printf "[General]\ndrivers=null" > ~/.alsoftrc; fi # SDL on macOS and iOS (cached)