-
Notifications
You must be signed in to change notification settings - Fork 626
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
CMAKE_CROSSCOMPILING_EMULATOR and misc. fixes #1106
Conversation
* Fix a few formatting problems. * Fix for -Wformat-security warnings in internal_win32_file_impl.h for mingw and also for security. * In unpack.c: Add missing <stdbool.h> include. * Swap intrinsic include check. On mingw both files are present but intrin.h should be used. * Disable a warning only for MSVC. * Remove useless export on defaulted destructor. Mingw doesn't like it. * Add CMAKE_CROSSCOMPILING_EMULATOR for all tests. This allows running tests on a platform like mingw. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
|
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.
Thanks for the contribution, it all looks good, but could I ask for a little bit of documentation as noted in the review?
Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
I added some comments about CMAKE_CROSSCOMPILING_EMULATOR. I also did for commented out tests just in case. |
I notice that while my intrin.h change fix mingw, it break clang. I don't know why it tries to do #ifdef __has_include
# if defined(_WIN32) && __has_include(<intrin.h>)
# include <intrin.h>
# elif defined(__x86_64__) && __has_include(<x86intrin.h>)
# include <x86intrin.h>
# endif
#endif |
Since the bulk of this PR is the CMAKE_CROSSCOMPILING_EMULATOR support, it will be better to have that in the title. |
* Remove commented-out add_test lines. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
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.
I think this all looks good now?
LGTM, too, thanks! |
…ion#1106) * Various fixes. * Fix a few formatting problems. * Fix for -Wformat-security warnings in internal_win32_file_impl.h for mingw and also for security. * In unpack.c: Add missing <stdbool.h> include. * Swap intrinsic include check. On mingw both files are present but intrin.h should be used. * Disable a warning only for MSVC. * Remove useless export on defaulted destructor. Mingw doesn't like it. * Add CMAKE_CROSSCOMPILING_EMULATOR for all tests. This allows running tests on a platform like mingw. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add comment about CMAKE_CROSSCOMPILING_EMULATOR. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * * Remove changes from internal_coding.h. * Remove commented-out add_test lines. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
* Various fixes. * Fix a few formatting problems. * Fix for -Wformat-security warnings in internal_win32_file_impl.h for mingw and also for security. * In unpack.c: Add missing <stdbool.h> include. * Swap intrinsic include check. On mingw both files are present but intrin.h should be used. * Disable a warning only for MSVC. * Remove useless export on defaulted destructor. Mingw doesn't like it. * Add CMAKE_CROSSCOMPILING_EMULATOR for all tests. This allows running tests on a platform like mingw. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * Add comment about CMAKE_CROSSCOMPILING_EMULATOR. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca> * * Remove changes from internal_coding.h. * Remove commented-out add_test lines. Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
You only need the i.e.
|
Cherry-picked from AcademySoftwareFoundation#1106 Signed-off-by: L. E. Segovia <amy@amyspark.me>
Cherry-picked from #1106 Signed-off-by: L. E. Segovia <amy@amyspark.me>
Fix a few problems that I noticed and some mingw related problems.
Signed-off-by: Patrick Northon northon_patrick3@yahoo.ca