Bug 1279593 - Add /arch:AVX or /arch:AVX2 to compile some files under media/libvpx. r=ted.mielczarek

MozReview-Commit-ID: CDXWpG4058E

--HG--
extra : rebase_source : dda30eeb18671eb5e9b3418bac4079fdd7632b6d
This commit is contained in:
Masatoshi Kimura 2017-06-06 20:31:34 +09:00
Родитель 755eb30580
Коммит 2ccb684d0c
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -105,6 +105,14 @@ if CONFIG['CLANG_CL'] or not CONFIG['_MSC_VER']:
if 'avx2.c' in f:
SOURCES[f].flags += ['-mavx2']
if CONFIG['_MSC_VER'] and not CONFIG['CLANG_CL']:
for f in SOURCES:
if f.endswith('.c'):
if 'avx.c' in f:
SOURCES[f].flags += ['-arch:AVX']
if 'avx2.c' in f:
SOURCES[f].flags += ['-arch:AVX2']
# Suppress warnings in third-party code.
if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
CFLAGS += [