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

emscripten: disable big endian test #1345

Merged
merged 1 commit into from
May 7, 2021
Merged

Conversation

msabwat
Copy link
Contributor

@msabwat msabwat commented Apr 26, 2021

Hi,

I think this test should not run on the emscripten platform because of :
https://github.com/emscripten-core/emscripten/blob/dff33368427fba16745c8ce52f11484a67b2855d/cmake/Modules/TestBigEndian.cmake#L5

changing CMAKE_ROOT to point to ..,/emsdk/upstream/emscripten/cmake does not solve the issue, as there are some .cmake files that are needed and are not on emsdk.

@rouault
Copy link
Collaborator

rouault commented May 6, 2021

Could you rebase your pull request on top of latest master (which has fixes for the CI failures) ?

@msabwat
Copy link
Contributor Author

msabwat commented May 6, 2021

Hi @rouault, thank you. Done.

@rouault rouault added this to the 2.5.0 milestone May 7, 2021
@rouault rouault merged commit b6b8d28 into uclouvain:master May 7, 2021
msabwat added a commit to msabwat/openjpeg that referenced this pull request Jun 1, 2021
thanks to @ePirat, it turns out that !EMSCRIPTEN does not evaluate to 1 on other platforms, so the the uclouvain#1345 actually disabled the test for all platforms.
rouault added a commit that referenced this pull request Jun 1, 2021
fix #1345: don't remove big endian test for other platforms
msabwat added a commit to msabwat/openjpeg that referenced this pull request Jun 10, 2021
thanks to @ePirat, it turns out that !EMSCRIPTEN does not evaluate to 1 on other platforms, so the the uclouvain#1345 actually disabled the test for all platforms.
@attilaolah
Copy link

For the record, I think the solution here is not to change CMAKE_ROOT, but to instead use ${CMAKE_MODULE_PATH} instead of ${CMAKE_ROOT}/Modules. Emscripten sets this variable to the path containing the correct endianness checks.

DanielHeath pushed a commit to radiopaedia/openjpeg that referenced this pull request Sep 21, 2021
thanks to @ePirat, it turns out that !EMSCRIPTEN does not evaluate to 1 on other platforms, so the the uclouvain#1345 actually disabled the test for all platforms.
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.

3 participants