mirror of
https://github.com/gperftools/gperftools
synced 2024-12-24 16:22:06 +00:00
DefineTargetVariables.cmake: fix for macOS
This commit is contained in:
parent
68db54545e
commit
8edeea4e83
@ -4,10 +4,17 @@ endif()
|
||||
|
||||
macro(define_target_variables)
|
||||
check_cxx_source_compiles("int main() { return __i386__; }" i386)
|
||||
check_cxx_source_compiles("int main() { return __s390__; }" s390)
|
||||
check_cxx_source_compiles("int main() { return __PPC64__; }" PPC64)
|
||||
check_cxx_source_compiles("int main() { return __x86_64__; }" x86_64)
|
||||
check_cxx_source_compiles("int main() { return __s390__; }" s390)
|
||||
if(APPLE)
|
||||
check_cxx_source_compiles("int main() { return __arm64__; }" ARM)
|
||||
check_cxx_source_compiles("int main() { return __ppc64__; }" PPC64)
|
||||
check_cxx_source_compiles("int main() { return __ppc__; }" PPC)
|
||||
else()
|
||||
check_cxx_source_compiles("int main() { return __arm__; }" ARM)
|
||||
check_cxx_source_compiles("int main() { return __PPC64__; }" PPC64)
|
||||
check_cxx_source_compiles("int main() { return __PPC__; }" PPC)
|
||||
endif()
|
||||
check_cxx_source_compiles("int main() { return __FreeBSD__; }" FreeBSD)
|
||||
check_cxx_source_compiles("int main() { return __MINGW__; }" MINGW)
|
||||
check_cxx_source_compiles("int main() { return __linux; }" LINUX)
|
||||
|
Loading…
Reference in New Issue
Block a user