summaryrefslogtreecommitdiff
path: root/vpx_ports
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2020-03-31 15:35:24 +0900
committerJohann <johannkoenig@google.com>2020-03-31 15:36:39 +0900
commitb3d12b3c7fe4b12f4dee68d0f15dfb2c825c867e (patch)
treee6c3d62984db90883910846e0661c5332011bc73 /vpx_ports
parent4b0422ad096c64bef9d7f972c092f5090510bdc1 (diff)
downloadlibvpx-b3d12b3c7fe4b12f4dee68d0f15dfb2c825c867e.tar.gz
nasm: require 2.14 with -DCHROMIUM
BUG=webm:1679 Change-Id: I75b1f860d111febf0aabe38b89d845ef296728a4
Diffstat (limited to 'vpx_ports')
-rw-r--r--vpx_ports/x86_abi_support.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/vpx_ports/x86_abi_support.asm b/vpx_ports/x86_abi_support.asm
index 708fa101c..dcdc1f8c3 100644
--- a/vpx_ports/x86_abi_support.asm
+++ b/vpx_ports/x86_abi_support.asm
@@ -119,6 +119,13 @@
; http://www.tortall.net/projects/yasm/ticket/236
;
%ifdef CHROMIUM
+ %ifdef __NASM_VER__
+ %if __NASM_VERSION_ID__ < 0x020e0000 ; 2.14
+ ; nasm < 2.14 does not support :private_extern directive
+ %fatal Must use nasm 2.14 or newer
+ %endif
+ %endif
+
%ifidn __OUTPUT_FORMAT__,elf32
%define PRIVATE :hidden
%elifidn __OUTPUT_FORMAT__,elf64