tradcpp: improved aarch64 support

This commit is contained in:
Dmitry Kalinkin 2018-12-05 13:48:18 -05:00
parent 703827f36c
commit 93ba7aa8c5
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
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";