kumquat-buildroot/package/python-ujson/0003-Add-support-for-microblaze.patch
Fabrice Fontaine 9b2d4a4211 package/python-ujson: fix microblaze build
Fix the follownig build failure on microblaze since bump to version
4.1.0 in commit a47f332a20 and
eb7d894f22:

In file included from ./deps/double-conversion/double-conversion/bignum-dtoa.h:31,
                 from ./deps/double-conversion/double-conversion/bignum-dtoa.cc:30:
./deps/double-conversion/double-conversion/utils.h:92:2: error: #error Target architecture was not detected as supported by Double-Conversion.
   92 | #error Target architecture was not detected as supported by Double-Conversion.
      |  ^~~~~

Fixes:
 - http://autobuild.buildroot.org/results/3cf5f266e0101a6c43f97801157fb6b2edce1ed0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-10-16 09:39:17 +02:00

28 lines
1.2 KiB
Diff

From 5cc233e98b74c5c370de888198a2b35200d55468 Mon Sep 17 00:00:00 2001
From: Florian Loitsch <florian@toitware.com>
Date: Sat, 12 Oct 2019 14:35:52 +0200
Subject: [PATCH] Add support for microblaze.
Really fixes #73.
[Retrieved (and backported) from:
https://github.com/google/double-conversion/commit/5cc233e98b74c5c370de888198a2b35200d55468]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changelog | 4 ++++
double-conversion/utils.h | 1 +
2 files changed, 5 insertions(+)
diff --git a/deps/idouble-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h
index 1a71df0..221467f 100644
--- a/deps/doyble-conversion/double-conversion/utils.h
+++ b/deps/double-conversion/double-conversion/utils.h
@@ -102,6 +102,7 @@ int main(int argc, char** argv) {
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
defined(__riscv) || \
- defined(__or1k__) || defined(__arc__)
+ defined(__or1k__) || defined(__arc__) || \
+ defined(__microblaze__)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__mc68000__)
#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS