From c4dc6485eb3bd51fdc88eee03218b9755c373282 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 24 Jan 2018 10:34:53 -0500 Subject: XL: Enable use of response files for includes and objects The IBM XL compiler supports response files via `-qoptfile=` instead of `@`. --- Modules/Compiler/XL.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Compiler/XL.cmake b/Modules/Compiler/XL.cmake index 4783785..e527a04 100644 --- a/Modules/Compiler/XL.cmake +++ b/Modules/Compiler/XL.cmake @@ -20,6 +20,8 @@ macro(__compiler_xl lang) # Feature flags. set(CMAKE_${lang}_VERBOSE_FLAG "-V") set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "-qpic") + set(CMAKE_${lang}_RESPONSE_FILE_FLAG "-qoptfile=") + set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "-qoptfile=") string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g") string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O") -- cgit v0.12