From: Haesik Jun Date: Thu, 10 May 2018 12:27:27 +0000 (+0900) Subject: Add option to disable inline asm of mbedtls X-Git-Tag: accepted/tizen/4.0/unified/20180514.093856^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f8332427bed5d7d6a2727c58645a37d953683c6;p=platform%2Fupstream%2Fiotjs.git Add option to disable inline asm of mbedtls Change-Id: I94062f1104741cf350a509847141cec2d45a255c Signed-off-by: Haesik Jun --- diff --git a/config/mbedtls/config-for-iotjs.h b/config/mbedtls/config-for-iotjs.h index 6581586..745ebbf 100644 --- a/config/mbedtls/config-for-iotjs.h +++ b/config/mbedtls/config-for-iotjs.h @@ -57,7 +57,9 @@ * * Comment to disable the use of assembly code. */ +#ifndef TIZEN_ASAN_BUILD #define MBEDTLS_HAVE_ASM +#endif /** * \def MBEDTLS_HAVE_TIME diff --git a/config/tizen/packaging/iotjs.spec b/config/tizen/packaging/iotjs.spec index cbc9b3a..ec7c728 100644 --- a/config/tizen/packaging/iotjs.spec +++ b/config/tizen/packaging/iotjs.spec @@ -91,6 +91,7 @@ V=1 VERBOSE=1 ./tools/build.py \ --create-shared-lib \ --no-init-submodule \ --no-parallel-build \ + %{?asan:--compile-flag=-DTIZEN_ASAN_BUILD} \ %{external_build_options} # --external-lib=sdkapi \ diff --git a/packaging/iotjs.spec b/packaging/iotjs.spec index cbc9b3a..ec7c728 100644 --- a/packaging/iotjs.spec +++ b/packaging/iotjs.spec @@ -91,6 +91,7 @@ V=1 VERBOSE=1 ./tools/build.py \ --create-shared-lib \ --no-init-submodule \ --no-parallel-build \ + %{?asan:--compile-flag=-DTIZEN_ASAN_BUILD} \ %{external_build_options} # --external-lib=sdkapi \