-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect x86 specific features by ifdef Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9730e05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__cpuidex() is pre-compiler dependent on #ifndef _MSC_VER which would include ARM however, xchg is not available for ARM which leads to compiler error:
cpu.c: In function ‘__cpuidex’:
cpu.c:40:3: error: impossible constraint in ‘asm’
asm volatile (
^~~~~~~
Makefile:656: recipe for target 'libpgm_noinst_la-cpu.lo' failed
9730e05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antoniomontero-carrier Windows x ARM hasn't been tested yet, hence the issue. Please feel free to submit a patch as there are a few assembler statements across the library.