Skip to content

Fix macOS unoptimised builds - #293

Open
mnightingale wants to merge 4 commits into
Parchive:masterfrom
mnightingale:bugfix/fix-macos-unoptimised-builds
Open

Fix macOS unoptimised builds#293
mnightingale wants to merge 4 commits into
Parchive:masterfrom
mnightingale:bugfix/fix-macos-unoptimised-builds

Conversation

@mnightingale

Copy link
Copy Markdown
Contributor

Currently the macOS builds are scalar only so very slow.

Autoconf only injects its default -g -O2 when CXXFLAGS is unset, so because env is set we end up with unoptimised builds.

The universal matrix also drops all ARM SIMD because of -arch x86_64 -arch arm64, the solution is to build them separately and use lipo to turn them into a universal binary.

I went with -O3 but it should probably be updated throughout.
I didn't add -g because we strip them immediately afterwords, so I wasn't sure if it would do anything.

Any opinion on updating the build tooling to CMAKE?


Unrelated changes:

make -j"$(nproc)" speed up the builds a little
<PlatformToolset>v145</PlatformToolset> because windows-latest has changed and doesn't have v143


Identified:

I believe the Windows tests especially are slow because printing to the console every 0.1% is slow, I'll send another PR after that throttles it and fixes some issues - it cut 5 minutes off the Windows test time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant