Remove some obsolete stuff.
We don't need to run compiler tests for ansi-for etc anymore. All supported compilers support the features tested here.
This commit is contained in:
parent
15e42bb27c
commit
5e92c82655
|
@ -83,5 +83,3 @@ endif ()
|
||||||
if (CMAKE_ANSI_CFLAGS)
|
if (CMAKE_ANSI_CFLAGS)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
include (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake)
|
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
See the License for more information.
|
See the License for more information.
|
||||||
============================================================================*/
|
============================================================================*/
|
||||||
#cmakedefine CMAKE_NO_STD_NAMESPACE
|
|
||||||
#cmakedefine CMAKE_NO_ANSI_STREAM_HEADERS
|
|
||||||
#cmakedefine CMAKE_NO_ANSI_STRING_STREAM
|
|
||||||
#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE
|
|
||||||
#cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE
|
#cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE
|
||||||
#cmakedefine HAVE_UNSETENV
|
#cmakedefine HAVE_UNSETENV
|
||||||
#cmakedefine CMAKE_USE_ELF_PARSER
|
#cmakedefine CMAKE_USE_ELF_PARSER
|
||||||
|
|
29
bootstrap
29
bootstrap
|
@ -1461,35 +1461,6 @@ cmake_compiler_settings_comment="/*
|
||||||
|
|
||||||
cmake_report cmConfigure.h${_tmp} "${cmake_compiler_settings_comment}"
|
cmake_report cmConfigure.h${_tmp} "${cmake_compiler_settings_comment}"
|
||||||
|
|
||||||
if [ "x$KWSYS_STL_HAVE_STD" = "x1" ]; then
|
|
||||||
cmake_report cmConfigure.h${_tmp} "/* #undef CMAKE_NO_STD_NAMESPACE */"
|
|
||||||
else
|
|
||||||
cmake_report cmConfigure.h${_tmp} "#define CMAKE_NO_STD_NAMESPACE 1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$KWSYS_IOS_USE_ANSI" = "x1" ]; then
|
|
||||||
cmake_report cmConfigure.h${_tmp} "/* #undef CMAKE_NO_ANSI_STREAM_HEADERS */"
|
|
||||||
else
|
|
||||||
cmake_report cmConfigure.h${_tmp} "#define CMAKE_NO_ANSI_STREAM_HEADERS 1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "x$KWSYS_IOS_USE_SSTREAM" = "x1" ]; then
|
|
||||||
cmake_report cmConfigure.h${_tmp} "/* #undef CMAKE_NO_ANSI_STRING_STREAM */"
|
|
||||||
else
|
|
||||||
cmake_report cmConfigure.h${_tmp} "#define CMAKE_NO_ANSI_STRING_STREAM 1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Test for ansi FOR scope
|
|
||||||
if cmake_try_run "${cmake_cxx_compiler}" \
|
|
||||||
"${cmake_cxx_flags}" \
|
|
||||||
"${cmake_source_dir}/Modules/TestForAnsiForScope.cxx" >> cmake_bootstrap.log 2>&1; then
|
|
||||||
cmake_report cmConfigure.h${_tmp} "/* #undef CMAKE_NO_ANSI_FOR_SCOPE */"
|
|
||||||
echo "${cmake_cxx_compiler} has ANSI for scoping"
|
|
||||||
else
|
|
||||||
cmake_report cmConfigure.h${_tmp} "#define CMAKE_NO_ANSI_FOR_SCOPE 1"
|
|
||||||
echo "${cmake_cxx_compiler} does not have ANSI for scoping"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# When bootstrapping on MinGW with MSYS we must convert the source
|
# When bootstrapping on MinGW with MSYS we must convert the source
|
||||||
# directory to a windows path.
|
# directory to a windows path.
|
||||||
if ${cmake_system_mingw}; then
|
if ${cmake_system_mingw}; then
|
||||||
|
|
Loading…
Reference in New Issue