feat add gperftools

This commit is contained in:
tqcq
2024-03-17 10:11:06 +08:00
parent 719fecd4bc
commit 0b9103e276
163 changed files with 49593 additions and 8 deletions

View File

@@ -0,0 +1,22 @@
if(NOT COMMAND check_cxx_source_compiles)
include(CheckCXXSourceCompiles)
endif()
macro(define_target_variables)
check_cxx_source_compiles("int main() { return __i386__; }" i386)
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)
check_cxx_source_compiles("int main() { return __APPLE__; }" OSX)
endmacro()