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

Fix Visual Studio on ARM Compilation #1315

Merged
merged 2 commits into from
Nov 16, 2022

Conversation

jfpanisset
Copy link
Contributor

This fixes Windows on ARM native Visual Studio compilation. The current #ifdef
logic assumes that Visual Studio always targets x86/x64, which is no longer the case.

Unfortunately based on:

https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170

there doesn't seem to be a single macro to test Intel vs ARM compilation, hence the ugly logic.

With this change, OpenEXR compiles native to ARM on Windows and passes its test suite.

This fixes Windows on ARM native Visual Studio compilation. The current #ifdef
logic assumes that Visual Studio always targets x86/x64, which is no longer the case.

Unfortunately based on:

https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170

there doesn't seem to be a single macro to test Intel vs ARM compilation.

With this change, OpenEXR compiles native to ARM on Windows and passes its
test suite.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 12, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: jfpanisset / name: Jean-Francois Panisset (5953bbd, 1b05e80)

@meshula
Copy link
Contributor

meshula commented Nov 12, 2022

Thanks for figuring that out.

@cary-ilm cary-ilm merged commit bef47cf into AcademySoftwareFoundation:main Nov 16, 2022
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Mar 3, 2023
* Fix Visual Studio on ARM Compilation.

This fixes Windows on ARM native Visual Studio compilation. The current #ifdef
logic assumes that Visual Studio always targets x86/x64, which is no longer the case.

Unfortunately based on:

https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170

there doesn't seem to be a single macro to test Intel vs ARM compilation.

With this change, OpenEXR compiles native to ARM on Windows and passes its
test suite.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>

* Typo fix

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
cary-ilm pushed a commit that referenced this pull request Mar 5, 2023
* Fix Visual Studio on ARM Compilation.

This fixes Windows on ARM native Visual Studio compilation. The current #ifdef
logic assumes that Visual Studio always targets x86/x64, which is no longer the case.

Unfortunately based on:

https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170

there doesn't seem to be a single macro to test Intel vs ARM compilation.

With this change, OpenEXR compiles native to ARM on Windows and passes its
test suite.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>

* Typo fix

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
@cary-ilm cary-ilm added the v3.1.6 label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants