diff --git a/open_ce/constants.py b/open_ce/constants.py index 17f5c66..12a272e 100644 --- a/open_ce/constants.py +++ b/open_ce/constants.py @@ -51,5 +51,6 @@ DEFAULT_TEST_RESULT_FILE = "test_results.xml" DEFAULT_PPC_ARCH = "p9" DEFAULT_GCC_HOME_DIR = "/opt/rh/gcc-toolset-12/root/usr" +DEFAULT_GCC_13_HOME_DIR = "/opt/rh/gcc-toolset-13/root/usr" OPENSSL_ENV_FILE = "openssl-env.yaml" FFMPEG_ENV_FILE = "ffmpeg-env.yaml" diff --git a/open_ce/inputs.py b/open_ce/inputs.py index b04ad49..108df2c 100644 --- a/open_ce/inputs.py +++ b/open_ce/inputs.py @@ -413,6 +413,10 @@ def _check_ppc_arch(args): print("Path variable set to : ", os.environ["PATH"]) if not os.path.exists(constants.DEFAULT_GCC_HOME_DIR): raise OpenCEError(Error.GCC12_COMPILER_NOT_FOUND) + if "GCC_13_HOME" not in os.environ: + os.environ["GCC_13_HOME"] = constants.DEFAULT_GCC_13_HOME_DIR + if not os.path.exists(constants.DEFAULT_GCC_HOME_DIR): + raise OpenCEError(Error.GCC13_COMPILER_NOT_FOUND) def parse_args(parser, arg_strings=None):