Fix mruby build error

mruby minirake does not like CXX="clang++-7 -std=c++14" because it
expects CXX to be an executable.  To workaround this, split CXX so
that CXX becomes a single word and move the rest of words to CXXFLAGS.
This commit is contained in:
Tatsuhiro Tsujikawa 2019-04-18 23:04:33 +09:00
parent 45d63d2006
commit a69251864b
1 changed files with 3 additions and 2 deletions

View File

@ -49,8 +49,9 @@ mruby:
MRUBY_CONFIG="${srcdir}/build_config.rb" \ MRUBY_CONFIG="${srcdir}/build_config.rb" \
BUILD_DIR="${abs_builddir}/mruby/build" \ BUILD_DIR="${abs_builddir}/mruby/build" \
INSTALL_DIR="${abs_builddir}/mruby/build/install/bin" \ INSTALL_DIR="${abs_builddir}/mruby/build/install/bin" \
CC="${CC}" CXX="${CXX}" LD="${LD}" \ CC="${CC}" CXX="$(firstword $(CXX))" LD="${LD}" \
CFLAGS="${CPPFLAGS} ${CFLAGS}" CXXFLAGS="${CPPFLAGS} ${CXXFLAGS}" \ CFLAGS="${CPPFLAGS} ${CFLAGS}" \
CXXFLAGS="$(wordlist 2, $(words $(CXX)), $(CXX)) ${CPPFLAGS} ${CXXFLAGS}" \
LDFLAGS="${LDFLAGS}" \ LDFLAGS="${LDFLAGS}" \
"${srcdir}/mruby/minirake" -f "${srcdir}/mruby/Rakefile" "${srcdir}/mruby/minirake" -f "${srcdir}/mruby/Rakefile"