CMake/Modules/Compiler
Francisco Facioni 738f3f23aa Ninja: Do not use nvcc response files with non-nvcc tools
Since commit d91b5a72cd (Ninja: Add support for CUDA nvcc response
files, 2019-05-30, v3.15.0-rc1~8^2) we use NVCC's `--options-file`
option to avoid long link command lines via a response file.  However,
for non-device linking the host tools are used and the option does not
make sense.  Update the logic to use `--options-file` only for device
linking.  Linking with the host tools already has its own logic for
response files.

Fixes: #19954
2020-02-24 13:31:33 -05:00
..
Absoft-Fortran.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
ADSP-DetermineCompiler.cmake
AppleClang-ASM.cmake
AppleClang-C-FeatureTests.cmake
AppleClang-C.cmake Record when C compilers have gained full support for 90,99,11 2019-03-27 15:45:11 -04:00
AppleClang-CXX-FeatureTests.cmake
AppleClang-CXX.cmake Merge topic 'apple_clang_cxx_20_support' 2019-05-14 10:52:17 -04:00
AppleClang-DetermineCompiler.cmake
ARMCC-ASM.cmake ARMClang: Add support for Clang-based ARM compiler 2019-05-14 14:59:55 -04:00
ARMCC-C.cmake
ARMCC-CXX.cmake
ARMCC-DetermineCompiler.cmake ARMCC: Do not identify ARMClang as ARMCC 2019-04-03 12:50:10 -04:00
ARMCC.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
ARMClang-ASM.cmake ARMClang: Add support for Clang-based ARM compiler 2019-05-14 14:59:55 -04:00
ARMClang-C-FeatureTests.cmake ARMClang: Add support for Clang-based ARM compiler 2019-05-14 14:59:55 -04:00
ARMClang-C.cmake ARMClang: Add support for Clang-based ARM compiler 2019-05-14 14:59:55 -04:00
ARMClang-CXX-FeatureTests.cmake ARMClang: Add support for Clang-based ARM compiler 2019-05-14 14:59:55 -04:00
ARMClang-CXX.cmake ARMClang: Add support for Clang-based ARM compiler 2019-05-14 14:59:55 -04:00
ARMClang-DetermineCompiler.cmake ARMClang: Add support for Clang-based ARM compiler 2019-05-14 14:59:55 -04:00
ARMClang.cmake ARMClang: fix policy manipulation in the compiler module 2019-05-23 09:19:59 -04:00
Borland-DetermineCompiler.cmake
Bruce-C-DetermineCompiler.cmake
Bruce-C.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
CCur-Fortran.cmake
Clang-ASM.cmake
Clang-C-FeatureTests.cmake
Clang-C.cmake CompileFeatures: Record which C features the MSVC compiler supports 2019-04-12 14:39:57 -04:00
Clang-CXX-FeatureTests.cmake
Clang-CXX-TestableFeatures.cmake
Clang-CXX.cmake Clang: For MSVC ABI do not use modes older than C++14 2019-07-24 07:40:30 -04:00
Clang-DetermineCompiler.cmake
Clang-DetermineCompilerInternal.cmake
Clang-FindBinUtils.cmake Clang: Find version-suffixed LLVM/Clang binutils 2017-08-15 14:51:44 -04:00
Clang.cmake PIE link options: Update strategy to fix performance regression 2018-12-19 19:41:27 +11:00
CMakeCommonCompilerMacros.cmake CompileFeatures: memoize C++ compilers with full language level support 2019-04-09 08:44:56 -04:00
Comeau-CXX-DetermineCompiler.cmake
Compaq-C-DetermineCompiler.cmake
Compaq-CXX-DetermineCompiler.cmake
Cray-C.cmake Record when C compilers have gained full support for 90,99,11 2019-03-27 15:45:11 -04:00
Cray-CXX.cmake CompileFeatures: Now able to presume full language level support 2019-04-09 08:44:56 -04:00
Cray-DetermineCompiler.cmake
Cray-Fortran.cmake Fortran: Add support for submodules on Cray 2019-07-08 11:28:27 -04:00
Cray.cmake Cray: Add common PIC flags 2018-01-24 09:09:08 -06:00
CrayPrgEnv-C.cmake CrayPrgEnv/ParseImplicitIncludes: simplify for new implict include parser 2019-01-29 08:17:44 -07:00
CrayPrgEnv-CXX.cmake CrayPrgEnv/ParseImplicitIncludes: simplify for new implict include parser 2019-01-29 08:17:44 -07:00
CrayPrgEnv-Fortran.cmake CrayPrgEnv/ParseImplicitIncludes: simplify for new implict include parser 2019-01-29 08:17:44 -07:00
CrayPrgEnv.cmake CrayPrgEnv: Change default linking mode based on PE version 2019-08-22 12:26:06 -04:00
Embarcadero-DetermineCompiler.cmake
Flang-FindBinUtils.cmake Flang: Add support for flang Fortran compiler 2017-08-31 15:24:59 -04:00
Flang-Fortran.cmake Fortran: Fix submodule file names across compilers 2019-02-14 10:23:02 -05:00
Fujitsu-DetermineCompiler.cmake
G95-Fortran.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
GHS-C.cmake GHS: Use the correct compiler flags for CMAKE_BUILD_TYPE 2019-01-16 10:41:35 -05:00
GHS-CXX.cmake GHS: Use the correct compiler flags for CMAKE_BUILD_TYPE 2019-01-16 10:41:35 -05:00
GHS-DetermineCompiler.cmake GHS: Add Compiler ID detection 2019-01-16 10:42:04 -05:00
GHS.cmake GHS: Update the link line processing 2019-01-16 10:41:27 -05:00
GNU-ASM.cmake
GNU-C-DetermineCompiler.cmake
GNU-C-FeatureTests.cmake
GNU-C.cmake Record when C compilers have gained full support for 90,99,11 2019-03-27 15:45:11 -04:00
GNU-CXX-DetermineCompiler.cmake
GNU-CXX-FeatureTests.cmake
GNU-CXX.cmake CompileFeatures: Record when compilers gained full CXX14 support 2019-05-02 10:23:25 -04:00
GNU-FindBinUtils.cmake MinGW: Fix locating BinUtils when compiler has a suffix 2019-02-06 17:43:55 +01:00
GNU-Fortran.cmake Fortran: Fix submodule file names across compilers 2019-02-14 10:23:02 -05:00
GNU.cmake PIE link options: Update strategy to fix performance regression 2018-12-19 19:41:27 +11:00
HP-ASM.cmake
HP-C-DetermineCompiler.cmake
HP-C.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
HP-CXX-DetermineCompiler.cmake
HP-CXX.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
HP-Fortran.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
IAR-ASM.cmake IAR: Add support for the RISC-V compiler 2019-07-08 13:11:45 -04:00
IAR-C.cmake IAR: Add support for the RISC-V compiler 2019-07-08 13:11:45 -04:00
IAR-CXX.cmake IAR: Add support for the RISC-V compiler 2019-07-08 13:11:45 -04:00
IAR-DetermineCompiler.cmake IAR: Add support for the RISC-V compiler 2019-07-08 13:11:45 -04:00
IAR-FindBinUtils.cmake IAR: Add support for the RISC-V compiler 2019-07-08 13:11:45 -04:00
IAR.cmake IAR: Generalize and add support for IAR RX compiler 2019-04-12 09:10:02 +02:00
IBMCPP-C-DetermineVersionInternal.cmake XL: Revert "Recognize compilers identified by __ibmxl__" 2019-02-25 08:24:28 -05:00
IBMCPP-CXX-DetermineVersionInternal.cmake XL: Revert "Recognize compilers identified by __ibmxl__" 2019-02-25 08:24:28 -05:00
Intel-ASM.cmake
Intel-C-FeatureTests.cmake
Intel-C.cmake Record when C compilers have gained full support for 90,99,11 2019-03-27 15:45:11 -04:00
Intel-CXX-FeatureTests.cmake CompileFeatures: Relax cxx_relaxed_constexpr compiler requirements 2019-05-13 13:11:32 -04:00
Intel-CXX.cmake CompileFeatures: Record when Intel gained full CXX14 support 2019-05-13 13:12:47 -04:00
Intel-DetermineCompiler.cmake Project: Report intel's simulation of gcc. 2019-04-25 13:37:44 -07:00
Intel-Fortran.cmake Fortran: Fix submodule file names across compilers 2019-02-14 10:23:02 -05:00
Intel.cmake Respect CMAKE_<LANG>_COMPILER_ARG1 in CMAKE_<LANG>_COMPILER_PREDEFINES_COMMAND 2018-08-28 20:07:53 +02:00
MSVC-ASM.cmake MSVC: Avoid warning when enabling ASM language with C compiler 2018-01-10 14:04:04 -05:00
MSVC-C-FeatureTests.cmake Features: Record C features for MSVC 2018-03-29 10:40:13 -04:00
MSVC-C.cmake MSVC: Add support for /JMC (Just My Code) 2019-05-14 13:27:18 -04:00
MSVC-CXX-FeatureTests.cmake CompileFeatures: Relax cxx_relaxed_constexpr compiler requirements 2019-05-13 13:11:32 -04:00
MSVC-CXX.cmake Merge topic 'msvc-jmc' 2019-05-15 14:06:58 -04:00
MSVC-DetermineCompiler.cmake
NAG-Fortran.cmake NAG: Pass response files through front-end to the linker 2018-08-01 13:28:45 -04:00
NVIDIA-CUDA.cmake Ninja: Do not use nvcc response files with non-nvcc tools 2020-02-24 13:31:33 -05:00
NVIDIA-DetermineCompiler.cmake CUDA: Add compiler detection for CUDA < 7.5 2018-04-23 11:26:56 -04:00
OpenWatcom-DetermineCompiler.cmake
PathScale-C.cmake
PathScale-CXX.cmake
PathScale-DetermineCompiler.cmake
PathScale-Fortran.cmake
PathScale.cmake
PGI-C.cmake Record when C compilers have gained full support for 90,99,11 2019-03-27 15:45:11 -04:00
PGI-CXX.cmake CompileFeatures: Now able to presume full language level support 2019-04-09 08:44:56 -04:00
PGI-DetermineCompiler.cmake
PGI-Fortran.cmake Fortran: Fix submodule file names across compilers 2019-02-14 10:23:02 -05:00
PGI.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
QCC-ASM.cmake Add ASM Compiler detection for QCC 2019-02-25 08:28:47 +01:00
QCC-C-FeatureTests.cmake QNX: Compiler and feature detection fixes 2018-12-03 23:18:43 +01:00
QCC-C.cmake QNX: Compiler and feature detection fixes 2018-12-03 23:18:43 +01:00
QCC-CXX-FeatureTests.cmake QNX: Compiler and feature detection fixes 2018-12-03 23:18:43 +01:00
QCC-CXX.cmake QNX: Compiler and feature detection fixes 2018-12-03 23:18:43 +01:00
QCC.cmake QNX: Update qcc depfile flags to be compliant with ccache 2018-10-29 12:50:55 -04:00
SCO-C.cmake
SCO-CXX.cmake
SCO-DetermineCompiler.cmake
SCO.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
SDCC-C-DetermineCompiler.cmake
SunPro-ASM.cmake
SunPro-C-DetermineCompiler.cmake
SunPro-C-FeatureTests.cmake Features: Record features for SunPro C 5.13 and 5.14 2017-05-11 15:59:48 -04:00
SunPro-C.cmake Record when C compilers have gained full support for 90,99,11 2019-03-27 15:45:11 -04:00
SunPro-CXX-DetermineCompiler.cmake
SunPro-CXX-FeatureTests.cmake SunPro: Record support for C++14 features by SunPro 5.{14,15} 2019-04-19 09:14:00 -04:00
SunPro-CXX.cmake SunPro: Record support for C++14 features by SunPro 5.{14,15} 2019-04-19 09:14:00 -04:00
SunPro-Fortran.cmake PIE link options: Update strategy to fix performance regression 2018-12-19 19:41:27 +11:00
SunPro.cmake SunPro: Use common compiler macros for language standard default 2017-05-02 09:49:23 -04:00
TI-ASM.cmake
TI-C.cmake TI: Add support for C language standards 2018-06-04 10:48:02 -04:00
TI-CXX.cmake Compiler/TI: Fix depfile generation for C++ 2018-02-20 11:52:11 -05:00
TI-DetermineCompiler.cmake
TinyCC-C-DetermineCompiler.cmake
TinyCC-C.cmake LINK_OPTIONS: Add support of "LINKER:" prefix 2018-06-06 17:22:41 +02:00
VisualAge-C-DetermineCompiler.cmake
VisualAge-C.cmake
VisualAge-CXX-DetermineCompiler.cmake
VisualAge-CXX.cmake
VisualAge-Fortran.cmake
Watcom-DetermineCompiler.cmake
XL-ASM.cmake
XL-C-DetermineCompiler.cmake XL: Revert "Recognize compilers identified by __ibmxl__" 2019-02-25 08:24:28 -05:00
XL-C.cmake Record when C compilers have gained full support for 90,99,11 2019-03-27 15:45:11 -04:00
XL-CXX-DetermineCompiler.cmake XL: Revert "Recognize compilers identified by __ibmxl__" 2019-02-25 08:24:28 -05:00
XL-CXX.cmake XL: Add C++14 language level flags 2019-04-15 12:38:03 -04:00
XL-Fortran.cmake Fortran: Fix submodule file names across compilers 2019-02-14 10:23:02 -05:00
XL.cmake XL: Look for CreateExportList only on AIX 2019-02-25 08:24:27 -05:00
XLClang-C-DetermineCompiler.cmake XLClang: Add a new compiler ID for the clang-based XL compiler 2019-02-25 08:24:28 -05:00
XLClang-C.cmake Record when C compilers have gained full support for 90,99,11 2019-03-27 15:45:11 -04:00
XLClang-CXX-DetermineCompiler.cmake XLClang: Add a new compiler ID for the clang-based XL compiler 2019-02-25 08:24:28 -05:00
XLClang-CXX.cmake XL: Add C++14 language level flags 2019-04-15 12:38:03 -04:00
XLClang.cmake XLClang: Add a new compiler ID for the clang-based XL compiler 2019-02-25 08:24:28 -05:00
zOS-C-DetermineCompiler.cmake
zOS-CXX-DetermineCompiler.cmake