diff options
| author | Michael Forney <mforney@mforney.org> | 2019-06-15 20:34:21 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-06-15 20:34:21 -0700 |
| commit | f948d62370e0180d7db4a2e78eb62c97b42d239d (patch) | |
| tree | 80849d9f2553d596048601475c3c448d36cc7cca /pkg/zstd | |
| parent | 9a9f25b61bf9b8bd5c416c5aa7c9740358dba308 (diff) | |
zstd: Only use __asm__ on GNU-compatible compilers
Diffstat (limited to 'pkg/zstd')
| -rw-r--r-- | pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch | 25 | ||||
| -rw-r--r-- | pkg/zstd/ver | 2 |
2 files changed, 26 insertions, 1 deletions
diff --git a/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch b/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch new file mode 100644 index 00000000..988a592b --- /dev/null +++ b/pkg/zstd/patch/0001-Only-use-__asm__-on-GNU-compatible-compilers.patch @@ -0,0 +1,25 @@ +From 6900865fb61bba4d91472d845118e0ffac4f7e39 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Mon, 10 Jun 2019 01:47:01 -0700 +Subject: [PATCH] Only use __asm__ on GNU-compatible compilers + +--- + lib/common/cpu.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/common/cpu.h b/lib/common/cpu.h +index 5f0923fc..76267fc3 100644 +--- a/lib/common/cpu.h ++++ b/lib/common/cpu.h +@@ -84,7 +84,7 @@ MEM_STATIC ZSTD_cpuid_t ZSTD_cpuid(void) { + : "a"(7), "c"(0) + : "edx"); + } +-#elif defined(__x86_64__) || defined(_M_X64) || defined(__i386__) ++#elif (defined(__x86_64__) || defined(_M_X64) || defined(__i386__)) && defined(__GNUC__) + U32 n; + __asm__("cpuid" : "=a"(n) : "a"(0) : "ebx", "ecx", "edx"); + if (n >= 1) { +-- +2.20.1 + diff --git a/pkg/zstd/ver b/pkg/zstd/ver index 27b849ed..76020791 100644 --- a/pkg/zstd/ver +++ b/pkg/zstd/ver @@ -1 +1 @@ -1.4.0 r0 +1.4.0 r1 |
