mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
@@ -1128,7 +1128,7 @@ else()
|
||||
|
||||
if(NOT WIN32 AND NOT APPLE AND ARCH STREQUAL "aarch64")
|
||||
# on arm64 linux, we set a minimum of armv8
|
||||
target_compile_options(${bun} PUBLIC -mcpu=cortex-a35)
|
||||
target_compile_options(${bun} PUBLIC -mcpu=cortex-a35 -mtune=ampere1)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
2
Makefile
2
Makefile
@@ -29,7 +29,7 @@ BREW_PREFIX_PATH = /opt/homebrew
|
||||
DEFAULT_MIN_MACOS_VERSION = 11.0
|
||||
MARCH_NATIVE = -mtune=$(CPU_TARGET)
|
||||
ifeq ($(OS_NAME),linux)
|
||||
MARCH_NATIVE = -mcpu=cortex-a35
|
||||
MARCH_NATIVE = -mcpu=cortex-a35 -mtune=ampere1
|
||||
endif
|
||||
else
|
||||
ARCH_NAME = x64
|
||||
|
||||
@@ -31,8 +31,8 @@ export CFLAGS='-O3 -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidd
|
||||
export CXXFLAGS='-O3 -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer'
|
||||
|
||||
if [[ $(uname -s) == 'Linux' && ($(uname -m) == 'aarch64' || $(uname -m) == 'arm64') ]]; then
|
||||
export CFLAGS="$CFLAGS -mcpu=cortex-a35 "
|
||||
export CXXFLAGS="$CXXFLAGS -mcpu=cortex-a35 "
|
||||
export CFLAGS="$CFLAGS -mcpu=cortex-a35 -mtune=ampere1 "
|
||||
export CXXFLAGS="$CXXFLAGS -mcpu=cortex-a35 -mtune=ampere1 "
|
||||
fi
|
||||
|
||||
export CMAKE_FLAGS=(
|
||||
|
||||
Reference in New Issue
Block a user