Merge pull request #51585 from veprbl/pr/tradcpp_aarch64_support

tradcpp: improved aarch64 support
This commit is contained in:
Jörg Thalheim 2018-12-07 10:52:49 +00:00 committed by GitHub
commit dca1fe7956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff a/config.h b/config.h
--- a/config.h
+++ b/config.h
@@ -124,6 +124,8 @@
#define CONFIG_CPU "__ppc64__"
#elif defined(__ARM__)
#define CONFIG_CPU "__ARM__"
+#elif defined(__aarch64__)
+#define CONFIG_CPU "__aarch64__"
#else
/* let it go */
#endif

View File

@ -11,7 +11,10 @@ stdenv.mkDerivation {
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
buildInputs = [ autoconf ];
preConfigure = "autoconf";
patches = [ ./tradcpp-configure.patch ];
patches = [
./tradcpp-configure.patch
./aarch64.patch
];
meta = with stdenv.lib; {
description = "A traditional (K&R-style) C macro preprocessor";