We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c2970b commit 5d9a106Copy full SHA for 5d9a106
1 file changed
libexec/build-libv8
@@ -38,5 +38,11 @@ ${CXX} -v
38
make BUILDTYPE="${BUILDTYPE}" config.gypi
39
make BUILDTYPE="${BUILDTYPE}" "out/Makefile"
40
41
+# workaround for node specifying `-msign-return-address=all` in ALL `CFLAGS` for aarch64 builds
42
+# (if the host isn't also aarch64, this flag causes a compiler error)
43
+if [ "$host_platform" != "$target_platform" ] && [ "${target_platform%%-*}" = "aarch64" ]; then
44
+ find -iname "*.host.mk" -exec sed -i '/-msign-return-address/d' {} ';'
45
+fi
46
+
47
export PATH="${PWD}/out/tools/bin:${PATH}"
48
make -j"${NJOBS}" -C out BUILDTYPE="${BUILDTYPE}" V=0
0 commit comments