Changeset View
Changeset View
Standalone View
Standalone View
cmake/config-ix.cmake
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | if (MINGW) | ||||
set(MINGW_LIBRARIES mingw32 ${MINGW_RUNTIME} moldname mingwex msvcrt advapi32 | set(MINGW_LIBRARIES mingw32 ${MINGW_RUNTIME} moldname mingwex msvcrt advapi32 | ||||
shell32 user32 kernel32 mingw32 ${MINGW_RUNTIME} | shell32 user32 kernel32 mingw32 ${MINGW_RUNTIME} | ||||
moldname mingwex msvcrt) | moldname mingwex msvcrt) | ||||
list(APPEND CMAKE_REQUIRED_LIBRARIES ${MINGW_LIBRARIES}) | list(APPEND CMAKE_REQUIRED_LIBRARIES ${MINGW_LIBRARIES}) | ||||
endif() | endif() | ||||
endif () | endif () | ||||
# CodeGen options. | # CodeGen options. | ||||
check_c_source_compiles(" | |||||
#pragma GCC diagnostic error \"-Wattributes\" | |||||
void func() __attribute__((__target_clones__(\"popcnt,default\"))); | |||||
int main() { return 0; }" | |||||
COMPILER_RT_HAVE_IFUNC_TARGET_CLONES) | |||||
check_c_compiler_flag(-ffreestanding COMPILER_RT_HAS_FFREESTANDING_FLAG) | check_c_compiler_flag(-ffreestanding COMPILER_RT_HAS_FFREESTANDING_FLAG) | ||||
check_cxx_compiler_flag(-fPIC COMPILER_RT_HAS_FPIC_FLAG) | check_cxx_compiler_flag(-fPIC COMPILER_RT_HAS_FPIC_FLAG) | ||||
check_cxx_compiler_flag(-fPIE COMPILER_RT_HAS_FPIE_FLAG) | check_cxx_compiler_flag(-fPIE COMPILER_RT_HAS_FPIE_FLAG) | ||||
check_cxx_compiler_flag(-fno-builtin COMPILER_RT_HAS_FNO_BUILTIN_FLAG) | check_cxx_compiler_flag(-fno-builtin COMPILER_RT_HAS_FNO_BUILTIN_FLAG) | ||||
check_cxx_compiler_flag(-fno-exceptions COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG) | check_cxx_compiler_flag(-fno-exceptions COMPILER_RT_HAS_FNO_EXCEPTIONS_FLAG) | ||||
check_cxx_compiler_flag(-fomit-frame-pointer COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG) | check_cxx_compiler_flag(-fomit-frame-pointer COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG) | ||||
check_cxx_compiler_flag(-funwind-tables COMPILER_RT_HAS_FUNWIND_TABLES_FLAG) | check_cxx_compiler_flag(-funwind-tables COMPILER_RT_HAS_FUNWIND_TABLES_FLAG) | ||||
check_cxx_compiler_flag(-fno-stack-protector COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG) | check_cxx_compiler_flag(-fno-stack-protector COMPILER_RT_HAS_FNO_STACK_PROTECTOR_FLAG) | ||||
▲ Show 20 Lines • Show All 602 Lines • Show Last 20 Lines |