diff options
| author | ruki <[email protected]> | 2022-05-20 22:29:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-20 22:29:15 +0800 |
| commit | 654a849bbaba584a1aeb61a4afaea879e191d4da (patch) | |
| tree | b5e66d94cd98ae25d489d3dac81c0406b99b3c89 /core/plat/linux | |
| parent | d9139479dfe22edc3eaf1f2c3d9b60df01e040fe (diff) | |
enable avx for linux
Diffstat (limited to 'core/plat/linux')
| -rw-r--r-- | core/plat/linux/prefix.mak | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/plat/linux/prefix.mak b/core/plat/linux/prefix.mak index 662187051..6cb4118c2 100644 --- a/core/plat/linux/prefix.mak +++ b/core/plat/linux/prefix.mak @@ -75,6 +75,12 @@ else CXFLAGS_RELEASE += -fomit-frame-pointer CXFLAGS_DEBUG += -fno-omit-frame-pointer endif +ifeq ($(BUILD_ARCH),x86_64) +CXFLAGS_RELEASE += -msse -msse2 -msse3 -mavx -mavx2 +endif +ifeq ($(BUILD_ARCH),arm64) +CXFLAGS_RELEASE += -mfpu=neon +endif # cflags: .c files CFLAGS_RELEASE = |
