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

stb_image: Give up trying to runtime-detect SSE2 on GCC. #428

Merged
merged 1 commit into from
Mar 19, 2017

Conversation

rygorous
Copy link
Collaborator

@rygorous rygorous commented Mar 5, 2017

We tried but it was nothing but trouble. New rule: with GCC/Clang, if you're compiling with -msse2, you get always-on SSE2 code, otherwise you don't get any. Trying to ship anything with proper runtime dispatch requires both working around certain bugs and some fiddling with build settings, which runs contrary to the intent of a one-file library, so bail on it entirely.

Fixes issue #280.
Fixes issue #410.

We tried but it was nothing but trouble. New rule: with
GCC/Clang, if you're compiling with -msse2, you get always-on
SSE2 code, otherwise you don't get any. Trying to ship
anything with proper runtime dispatch requires both working
around certain bugs and some fiddling with build settings,
which runs contrary to the intent of a one-file library,
so bail on it entirely.

Fixes issue nothings#280.
Fixes issue nothings#410.
@nothings nothings merged commit 3e17544 into nothings:master Mar 19, 2017
mosra added a commit to mosra/magnum-plugins that referenced this pull request Jun 6, 2018
Especially to have nothings/stb#428 in, fixing
"undefined symbol: __cpu_model" error on GCC 5.
@rygorous rygorous deleted the fix_stbimage_gcc_sse2 branch March 2, 2019 02:46
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.

2 participants