From be1fd1974d1ed3693619d86df49ac3463483640d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 29 Oct 2019 08:28:28 +0100 Subject: [PATCH] build: enable backtrace when V8 is built for PPC and S390x Refs: https://github.com/nodejs/node-v8/issues/119 --- common.gypi | 3 +++ tools/make-v8.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index d95f163b64683d..6d8f37b316a96b 100644 --- a/common.gypi +++ b/common.gypi @@ -102,6 +102,9 @@ 'obj_dir%': '<(PRODUCT_DIR)/obj.target', 'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a', }], + ['target_arch in ("ppc64", "s390x")', { + 'v8_enable_backtrace': 1, + }], ], }, diff --git a/tools/make-v8.sh b/tools/make-v8.sh index 37bc57f4994fb0..e4024330b169db 100755 --- a/tools/make-v8.sh +++ b/tools/make-v8.sh @@ -28,7 +28,7 @@ if [[ "$ARCH" == "s390x" ]] || [[ "$ARCH" == "ppc64le" ]]; then g++ --version gcc --version export PKG_CONFIG_PATH=$BUILD_TOOLS/pkg-config - gn gen -v out.gn/$BUILD_ARCH_TYPE --args="is_component_build=false is_debug=false use_goma=false goma_dir=\"None\" use_custom_libcxx=false v8_target_cpu=\"$TARGET_ARCH\" target_cpu=\"$TARGET_ARCH\"" + gn gen -v out.gn/$BUILD_ARCH_TYPE --args="is_component_build=false is_debug=false use_goma=false goma_dir=\"None\" use_custom_libcxx=false v8_target_cpu=\"$TARGET_ARCH\" target_cpu=\"$TARGET_ARCH\" v8_enable_backtrace=true" ninja -v -C out.gn/$BUILD_ARCH_TYPE d8 cctest inspector-test else PATH=~/_depot_tools:$PATH tools/dev/v8gen.py $BUILD_ARCH_TYPE --no-goma $V8_BUILD_OPTIONS