From: Dmitry Volyntsev Date: Tue, 16 Jul 2019 09:57:29 +0000 (+0300) Subject: Avoiding aligned attribute detection skip on ppc64le platforms. X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=e0470c3eebcc5d560be03798b783dc11efe8f7f4;p=njs.git Avoiding aligned attribute detection skip on ppc64le platforms. --- diff --git a/auto/clang b/auto/clang index 8ef6ac21..619906d4 100644 --- a/auto/clang +++ b/auto/clang @@ -278,30 +278,17 @@ nxt_feature_test="#include . auto/feature -nxt_os="$NXT_SYSTEM/$NXT_SYSTEM_PLATFORM" - -if [ "$nxt_os" = "Linux/ppc64le" ]; then - - # Old GNU ld linker may hang on Linux ppc64le platform - # if some of these features are enabled. - - echo "checking for GCC __attribute__ aligned is disabled for $nxt_os." - -else - - nxt_feature="GCC __attribute__ aligned" - nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED - nxt_feature_run=no - nxt_feature_path= - nxt_feature_libs= - nxt_feature_test="int n __attribute__ ((aligned(64))); - - int main(void) { - return 0; - }" - . auto/feature +nxt_feature="GCC __attribute__ aligned" +nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED +nxt_feature_run=no +nxt_feature_path= +nxt_feature_libs= +nxt_feature_test="int n __attribute__ ((aligned(64))); -fi + int main(void) { + return 0; + }" +. auto/feature nxt_feature="Memory sanitizer"