Bug 1782141 - Move SIMD/SSE files to mozglue r=iain

Differential Revision: https://phabricator.services.mozilla.com/D153264
This commit is contained in:
Doug Thayer 2022-08-01 16:40:57 +00:00
parent 908558a3ae
commit a104274600
7 changed files with 10 additions and 10 deletions

View File

@ -99,12 +99,10 @@ EXPORTS.mozilla = [
"SegmentedVector.h",
"SHA1.h",
"SharedLibrary.h",
"SIMD.h",
"SmallPointerArray.h",
"Span.h",
"SplayTree.h",
"SPSCQueue.h",
"SSE.h",
"StaticAnalysisFunctions.h",
"TaggedAnonymousMemory.h",
"Tainting.h",
@ -177,20 +175,12 @@ UNIFIED_SOURCES += [
"Poison.cpp",
"RandomNum.cpp",
"SHA1.cpp",
"SIMD.cpp",
"TaggedAnonymousMemory.cpp",
"UniquePtrExtensions.cpp",
"Unused.cpp",
"Utf8.cpp",
]
if CONFIG["CPU_ARCH"].startswith("x86"):
SOURCES += [
"SIMD_avx2.cpp",
"SSE.cpp",
]
SOURCES["SIMD_avx2.cpp"].flags += ["-mavx2"]
if CONFIG["MOZ_BUILD_APP"] not in (
"memory",
"tools/update-programs",

View File

@ -17,7 +17,9 @@ EXPORTS.mozilla += [
"PlatformMutex.h",
"PlatformRWLock.h",
"Printf.h",
"SIMD.h",
"Sprintf.h",
"SSE.h",
"StackWalk.h",
"TimeStamp.h",
"Uptime.h",
@ -43,11 +45,19 @@ SOURCES += [
"AwakeTimeStamp.cpp",
"MmapFaultHandler.cpp",
"Printf.cpp",
"SIMD.cpp",
"StackWalk.cpp",
"TimeStamp.cpp",
"Uptime.cpp",
]
if CONFIG["CPU_ARCH"].startswith("x86"):
SOURCES += [
"SIMD_avx2.cpp",
"SSE.cpp",
]
SOURCES["SIMD_avx2.cpp"].flags += ["-mavx2"]
OS_LIBS += CONFIG["REALTIME_LIBS"]
if CONFIG["OS_ARCH"] == "WINNT":