diff --git a/deps/simdutf/simdutf.gyp b/deps/simdutf/simdutf.gyp index baa6ad7e437956..93c83e618c7a8f 100644 --- a/deps/simdutf/simdutf.gyp +++ b/deps/simdutf/simdutf.gyp @@ -1,4 +1,9 @@ { + 'variables': { + 'gas_version%': '0.0', + 'nasm_version%': '0.0', + 'llvm_version%': '0.0', + }, 'targets': [ { 'target_name': 'simdutf', @@ -8,6 +13,16 @@ 'include_dirs': ['.'], }, 'sources': ['simdutf.cpp'], + 'conditions': [ + ['OS=="linux"', { + 'conditions': [ + # TODO(anonrig): Remove this validation when benchmark CI has binutils >= 2.30 + ['v(gas_version) < v("2.30") and v(nasm_version) < v("2.14") and v(llvm_version) < v("6.0")', { + 'defines': ['SIMDUTF_IMPLEMENTATION_ICELAKE=0'], + }], + ], + }], + ], }, ] }