зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
755eb30580
Коммит
2ccb684d0c
|
@ -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 += [
|
||||
|
|
Загрузка…
Ссылка в новой задаче