-
Notifications
You must be signed in to change notification settings - Fork 267
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
Unable to build this on macOS #45
Comments
here cpu_features/include/cpu_features_macros.h Lines 52 to 62 in 7863534
I would add #if defined(__APPLE__)
#define CPU_FEATURES_OS_APPLE
#endif
or #if defined(__OSX__)
#define CPU_FEATURES_OS_OSX
#endif then adapt accordingly Lines 38 to 45 in 7863534
|
FYI on my macbook pro %clang -dM -E - </dev/null | grep -i "\(mach\|apple\)"
#define __APPLE_CC__ 6000
#define __APPLE__ 1
#define __MACH__ 1
#define __VERSION__ "4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)"
#define __apple_build_version__ 9020039 |
According to https://sourceforge.net/p/predef/wiki/OperatingSystems/ we should test for |
Be careful these macros are both defined also on iOS too |
Hi, thank you |
@abhi18av @sl1200mk2 To change please run @gchatelet Travis-CI Mac workers seems "correctly" configured in this regard... |
@gchatelet I still think there is a bug since cpu_features/src/cpuinfo_ppc.c Lines 167 to 173 in 7863534
unconditionally declared here: cpu_features/include/internal/hwcaps.h Line 127 in 26133d3
But Lines 164 to 187 in 7863534
I think, we should add this to the PlatformType kEmptyPlatformType;
PlatformType CpuFeatures_GetPlatformType(void) {
return kEmptyPlatformType;
} ps: I think Line 162 in 26133d3
Line 183 in 26133d3
|
Not @google but I'd like to confirm that a clean CMake on macOS 10.14.2 with a GNU-based toolchain is building successfully, but I have not been able to get tests passing with llvm this morning. This may be unrelated to the issues that @gchatelet / @Mizux are having. |
@Mizux the build is now fixed. I'm closing the issue. |
@gchatelet , I ran into an error while running this command on the
macOS
systemThe text was updated successfully, but these errors were encountered: