[njs] Avoiding aligned attribute detection skip on ppc64le platforms.
Dmitry Volyntsev
xeioex at nginx.com
Tue Jul 16 10:01:11 UTC 2019
details: https://hg.nginx.org/njs/rev/f98e8a101b02
branches:
changeset: 1051:f98e8a101b02
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Tue Jul 16 12:57:29 2019 +0300
description:
Avoiding aligned attribute detection skip on ppc64le platforms.
diffstat:
auto/clang | 33 ++++++++++-----------------------
1 files changed, 10 insertions(+), 23 deletions(-)
diffs (44 lines):
diff -r 18396fcfd53b -r f98e8a101b02 auto/clang
--- a/auto/clang Mon Jul 15 19:20:55 2019 +0300
+++ b/auto/clang Tue Jul 16 12:57:29 2019 +0300
@@ -278,30 +278,17 @@ nxt_feature_test="#include <stdlib.h>
. 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)));
- 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
-
-fi
+ int main(void) {
+ return 0;
+ }"
+. auto/feature
nxt_feature="Memory sanitizer"
More information about the nginx-devel
mailing list