Blame SOURCES/testsuite-11.0.0-mutateecompiler.patch

368290
--- dyninst-11.0.0/testsuite-11.0.0/CMakeLists.txt~	2021-05-19 15:36:07.167215391 -0400
368290
+++ dyninst-11.0.0/testsuite-11.0.0/CMakeLists.txt	2021-05-19 16:31:44.469592338 -0400
368290
@@ -322,1 +322,2 @@
368290
-  find_program(M_gnu_cc NAMES ${CMAKE_MUT_C_COMPILER} ${CMAKE_C_COMPILER} gcc)
368290
+  # Force mutator to use devtoolset-11-gcc
368290
+  find_program(M_gnu_cc NAMES gcc PATHS /opt/rh/devtoolset-11/root/usr/bin NO_DEFAULT_PATH)
368290
@@ -324,1 +325,2 @@
368290
-  find_program(M_gnu_cxx NAMES ${CMAKE_MUT_CXX_COMPILER} ${CMAKE_CXX_COMPILER} g++)
368290
+  # Force mutator to use devtoolset-11-gxx
368290
+  find_program(M_gnu_cxx NAMES g++ PATHS /opt/rh/devtoolset-11/root/usr/bin NO_DEFAULT_PATH)
368290
368290
368290
--- dyninst-11.0.0/testsuite-11.0.0/checkMutateeCompiler.cmake
368290
+++ dyninst-11.0.0/testsuite-11.0.0/checkMutateeCompiler.cmake
368290
@@ -5,10 +5,11 @@ MACRO (CHECK_MUTATEE_COMPILER _COMPILER _COMP_FLAG _LINK_FLAG _LANG _MSG _RESULT
368290
 	  set(COMPILER_OUTPUT "")
368290
       file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/CMakeTmp/CompilerTest)
368290
       if(${_LANG} MATCHES CXX)
368290
+	message ("CHECK_MUTATEE_COMPILER " ${CMAKE_BINARY_DIR}/CMakeTmp/CompilerTest " " ${CMAKE_COMMAND} " " -DCMAKE_CXX_COMPILER=${_COMPILER} " " -DCMAKE_CXX_FLAGS="${_COMP_FLAG}" " " -DCMAKE_EXE_LINKER_FLAGS="${_LINK_FLAG}" " " -G"${CMAKE_GENERATOR}" " " ${PROJECT_SOURCE_DIR}/compiler_test/cxx)
368290
             execute_process(WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/CMakeTmp/CompilerTest
368290
                             RESULT_VARIABLE COMPILER_RESULT
368290
-                            OUTPUT_QUIET
368290
-                            ERROR_QUIET
368290
+#                            OUTPUT_QUIET
368290
+#                            ERROR_QUIET
368290
 #							OUTPUT_VARIABLE COMPILER_OUTPUT
368290
 #							ERROR_VARIABLE COMPILER_OUTPUT
368290
                             COMMAND ${CMAKE_COMMAND}
368290
@@ -31,10 +32,11 @@ MACRO (CHECK_MUTATEE_COMPILER _COMPILER _COMP_FLAG _LINK_FLAG _LANG _MSG _RESULT
368290
 			    -G${CMAKE_GENERATOR}
368290
                             ${PROJECT_SOURCE_DIR}/compiler_test/fortran)
368290
       elseif (${_LANG} MATCHES C)
368290
+	message ("CHECK_MUTATEE_COMPILER " ${CMAKE_BINARY_DIR}/CMakeTmp/CompilerTest " " ${CMAKE_COMMAND} " " -DCMAKE_C_COMPILER=${_COMPILER} " " -DCMAKE_C_FLAGS="${_COMP_FLAG}" " " -DCMAKE_EXE_LINKER_FLAGS="${_LINK_FLAG}" " " -G"${CMAKE_GENERATOR}" " " ${PROJECT_SOURCE_DIR}/compiler_test/c)
368290
             execute_process(WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/CMakeTmp/CompilerTest
368290
                             RESULT_VARIABLE COMPILER_RESULT
368290
-                            OUTPUT_QUIET
368290
-                            ERROR_QUIET
368290
+#                            OUTPUT_QUIET
368290
+#                            ERROR_QUIET
368290
 #							OUTPUT_VARIABLE COMPILER_OUTPUT
368290
 #							ERROR_VARIABLE COMPILER_OUTPUT
368290
                             COMMAND ${CMAKE_COMMAND}