Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Set march to IvyBridge for supported platforms #1557

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ case "$platform" in # Adjust compilation options based on platform
sys_cflags='-Wno-error=redundant-decls'
opts="$opts --disable-werror"
postbuild='package_linux'
if [ "$target_arch" == "x86_64" ]; then
sys_cflags="$sys_cflags -msse4.2 -mavx"
fi
;;
Darwin)
echo "Compiling for MacOS for $target_arch..."
Expand Down Expand Up @@ -233,15 +236,15 @@ case "$platform" in # Adjust compilation options based on platform
;;
CYGWIN*|MINGW*|MSYS*)
echo 'Compiling for Windows...'
sys_cflags='-Wno-error'
sys_cflags='-Wno-error -msse4.2 -mavx'
opts="$opts --disable-fortify-source"
postbuild='package_windows' # set the above function to be called after build
target="qemu-system-i386w.exe"
;;
win64-cross)
echo 'Cross-compiling for Windows...'
export AR=${AR:-$CROSSAR}
sys_cflags='-Wno-error'
sys_cflags='-Wno-error -msse4.2 -mavx'
opts="$opts --cross-prefix=$CROSSPREFIX --static --disable-fortify-source"
postbuild='package_wincross' # set the above function to be called after build
target="qemu-system-i386w.exe"
Expand Down