parent
0fcbd26aaf
commit
65bb68f1e7
@ -0,0 +1,3 @@
|
||||
include(Platform/Windows-GNU)
|
||||
__windows_compiler_gnu(Fortran)
|
||||
# TODO: MSVC ABI Support
|
@ -0,0 +1,5 @@
|
||||
include(${RunCMake_SOURCE_DIR}/Intl-common.cmake)
|
||||
set(output "${RunCMake_TEST_BINARY_DIR}/${intl}-output.txt")
|
||||
if(NOT EXISTS "${output}")
|
||||
set(RunCMake_TEST_FAILED "Expected output does not exist:\n ${output}")
|
||||
endif()
|
@ -0,0 +1 @@
|
||||
set(intl "intl-ë®")
|
@ -0,0 +1,7 @@
|
||||
include(Intl-common.cmake)
|
||||
set(input "${CMAKE_CURRENT_BINARY_DIR}/${intl}-input.txt")
|
||||
set(output "${CMAKE_CURRENT_BINARY_DIR}/${intl}-output.txt")
|
||||
file(WRITE "${input}" "${intl}\n")
|
||||
add_custom_command(OUTPUT "${output}"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${input}" "${output}")
|
||||
add_custom_target(drive ALL DEPENDS "${output}")
|
@ -0,0 +1,43 @@
|
||||
CMAKE_LANG=Fortran
|
||||
CMAKE_LINKER=/usr/bin/ld
|
||||
CMAKE_Fortran_COMPILER_ABI=
|
||||
CMAKE_Fortran_COMPILER_AR=
|
||||
CMAKE_Fortran_COMPILER_ARCHITECTURE_ID=
|
||||
CMAKE_Fortran_COMPILER_EXTERNAL_TOOLCHAIN=
|
||||
CMAKE_Fortran_COMPILER_ID=LLVMFlang
|
||||
CMAKE_Fortran_COMPILER_LAUNCHER=
|
||||
CMAKE_Fortran_COMPILER_LOADED=1
|
||||
CMAKE_Fortran_COMPILER_RANLIB=
|
||||
CMAKE_Fortran_COMPILER_TARGET=
|
||||
CMAKE_Fortran_COMPILER_VERSION=15.0.0
|
||||
CMAKE_Fortran_COMPILER_VERSION_INTERAL=
|
||||
Change Dir: /tmp/ii/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_2e9b9/fast && /usr/bin/gmake -f CMakeFiles/cmTC_2e9b9.dir/build.make CMakeFiles/cmTC_2e9b9.dir/build
|
||||
gmake[1]: Entering directory '/tmp/ii/CMakeFiles/CMakeTmp'
|
||||
Building Fortran object CMakeFiles/cmTC_2e9b9.dir/CMakeFortranCompilerABI.F.o
|
||||
/usr/bin/flang-new -v -c /tmp/CMake/Modules/CMakeFortranCompilerABI.F -o CMakeFiles/cmTC_2e9b9.dir/CMakeFortranCompilerABI.F.o
|
||||
flang-new version 15.0.0 (Fedora 15.0.0-4.fc38)
|
||||
Target: x86_64-redhat-linux-gnu
|
||||
Thread model: posix
|
||||
InstalledDir: /usr/bin
|
||||
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/12
|
||||
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/12
|
||||
Candidate multilib: .@m64
|
||||
Candidate multilib: 32@m32
|
||||
Selected multilib: .@m64
|
||||
"/usr/bin/flang-new" -fc1 -triple x86_64-redhat-linux-gnu -emit-obj -o CMakeFiles/cmTC_2e9b9.dir/CMakeFortranCompilerABI.F.o -x f95-cpp-input /tmp/CMake/Modules/CMakeFortranCompilerABI.F
|
||||
Linking Fortran executable cmTC_2e9b9
|
||||
/tmp/CMake/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2e9b9.dir/link.txt --verbose=1
|
||||
/usr/bin/flang-new -v CMakeFiles/cmTC_2e9b9.dir/CMakeFortranCompilerABI.F.o -o cmTC_2e9b9
|
||||
flang-new version 15.0.0 (Fedora 15.0.0-4.fc38)
|
||||
Target: x86_64-redhat-linux-gnu
|
||||
Thread model: posix
|
||||
InstalledDir: /usr/bin
|
||||
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/12
|
||||
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/12
|
||||
Candidate multilib: .@m64
|
||||
Candidate multilib: 32@m32
|
||||
Selected multilib: .@m64
|
||||
"/usr/bin/ld" --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_2e9b9 /usr/bin/../lib/gcc/x86_64-redhat-linux/12/../../../../lib64/crt1.o /usr/bin/../lib/gcc/x86_64-redhat-linux/12/../../../../lib64/crti.o /usr/bin/../lib/gcc/x86_64-redhat-linux/12/crtbegin.o -L/usr/bin/../lib/gcc/x86_64-redhat-linux/12 -L/usr/bin/../lib/gcc/x86_64-redhat-linux/12/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/lib -L/usr/lib CMakeFiles/cmTC_2e9b9.dir/CMakeFortranCompilerABI.F.o -lFortran_main -lFortranRuntime -lFortranDecimal -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/bin/../lib/gcc/x86_64-redhat-linux/12/crtend.o /usr/bin/../lib/gcc/x86_64-redhat-linux/12/../../../../lib64/crtn.o
|
||||
gmake[1]: Leaving directory '/tmp/ii/CMakeFiles/CMakeTmp'
|
@ -0,0 +1,2 @@
|
||||
libs=Fortran_main;FortranRuntime;FortranDecimal;m;gcc;gcc_s;c;gcc;gcc_s
|
||||
dirs=/usr/lib/gcc/x86_64-redhat-linux/12;/usr/lib64;/lib64;/lib;/usr/lib
|
@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
@CASE_CMAKELISTS_PREFIX_CODE@
|
||||
project(CTestBuild@CASE_NAME@ NONE)
|
||||
project(CTestBuild@CASE_NAME@ @LANG@)
|
||||
include(CTest)
|
||||
add_test(NAME RunCMakeVersion COMMAND "${CMAKE_COMMAND}" --version)
|
||||
@CASE_CMAKELISTS_SUFFIX_CODE@
|
||||
|
@ -0,0 +1,23 @@
|
||||
file(GLOB build_xml_file "${RunCMake_TEST_BINARY_DIR}/Testing/*/Build.xml")
|
||||
if(build_xml_file)
|
||||
file(READ "${build_xml_file}" build_xml LIMIT 8192)
|
||||
string(FIND "${build_xml}" [[This should not be compiled]] expected_failure_pos)
|
||||
if(expected_failure_pos EQUAL "-1")
|
||||
string(REPLACE "\n" "\n " build_xml " ${build_xml}")
|
||||
set(RunCMake_TEST_FAILED
|
||||
"Build.xml does not have expected error message:\n${build_xml}"
|
||||
)
|
||||
else()
|
||||
string(SUBSTRING "${build_xml}" "${expected_failure_pos}" -1 remaining_xml)
|
||||
string(FIND "${remaining_xml}" [[<Failure type="Error">]] unexpected_failure_pos)
|
||||
if(NOT unexpected_failure_pos EQUAL "-1")
|
||||
string(SUBSTRING "${remaining_xml}" "${unexpected_failure_pos}" -1 error_msg_xml)
|
||||
string(REPLACE "\n" "\n " error_msg_xml " ${error_msg_xml}")
|
||||
set(RunCMake_TEST_FAILED
|
||||
"Build.xml contains unexpected extra <Failure> elements:\n${error_msg_xml}"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
set(RunCMake_TEST_FAILED "Build.xml not found")
|
||||
endif()
|
@ -0,0 +1 @@
|
||||
(-1|255)
|
@ -0,0 +1 @@
|
||||
^Error\(s\) when building project
|
@ -0,0 +1 @@
|
||||
#error "This should not be compiled"
|
@ -0,0 +1,7 @@
|
||||
cmake_policy(SET CMP0128 NEW)
|
||||
set(check_cxx_std "
|
||||
#if __cplusplus > 199711L && __cplusplus <= 201103L
|
||||
# error Compiler is incorrectly in C++11 mode.
|
||||
#endif
|
||||
")
|
||||
include(CMP0128-common.cmake)
|
@ -0,0 +1,7 @@
|
||||
|
||||
set(check_cxx_std "
|
||||
#if __cplusplus <= 199711L || __cplusplus > 201103L
|
||||
# error Compiler is incorrectly not in C++11 mode.
|
||||
#endif
|
||||
")
|
||||
include(CMP0128-common.cmake)
|
@ -0,0 +1,31 @@
|
||||
cmake_policy(SET CMP0067 NEW)
|
||||
enable_language(CXX)
|
||||
|
||||
# Isolate the one try_compile below in the error log.
|
||||
set(CMakeError_log "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log")
|
||||
file(REMOVE "${CMakeError_log}")
|
||||
|
||||
# Add our own -std= flag to the try_compile check.
|
||||
set(CMAKE_REQUIRED_FLAGS -std=c++11)
|
||||
|
||||
# Tell CMP0128 NEW behavior to append a -std= flag (after ours).
|
||||
if(CMAKE_CXX_EXTENSIONS_DEFAULT)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
else()
|
||||
set(CMAKE_CXX_EXTENSIONS ON)
|
||||
endif()
|
||||
|
||||
include(CheckSourceCompiles)
|
||||
check_source_compiles(CXX "
|
||||
${check_cxx_std}
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
" SRC_COMPILED)
|
||||
if(NOT SRC_COMPILED)
|
||||
if(EXISTS "${CMakeError_log}")
|
||||
file(READ "${CMakeError_log}" err_log)
|
||||
endif()
|
||||
message("${err_log}")
|
||||
endif()
|
@ -0,0 +1,4 @@
|
||||
enable_language(CXX)
|
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/info.cmake" "
|
||||
set(CMAKE_CXX_EXTENSIONS_DEFAULT \"${CMAKE_CXX_EXTENSIONS_DEFAULT}\")
|
||||
")
|
Loading…
Reference in new issue