llvm-project/clang/lib/Driver
Nico Weber 47bf505775 driver: Add a `--rsp-quoting` flag to pick response file quoting.
Currently, clang-cl always uses Windows style for unquoting, and clang always
uses POSIX style for unquoting.

With this flag, it's possible to change these defaults.

In general, response file quoting should match the shell the response file is
used in.  On Windows, it's possible to run clang-cl in a bash shell, or clang in
cmd.exe, so a flag for overriding the default behavior is natural there.

On non-Windows, Windows quoting probably never makes sense (except maybe in
Wine), but having clang-cl behave differently based on the host OS seems
strange too.  So require that people who want to use posix-style response
files with clang-cl on non-Windows pass --rsp-quoting=posix.

http://reviews.llvm.org/D19425

llvm-svn: 267474
2016-04-25 21:15:49 +00:00
..
Action.cpp [CUDA] Invoke ptxas and fatbinary during compilation. 2016-01-14 21:41:27 +00:00
CMakeLists.txt Support mingw-w64 and mingw.org toolchains at any install location. 2015-07-02 04:45:27 +00:00
Compilation.cpp Bail on compilation as soon as a job fails. 2016-02-24 21:49:28 +00:00
CrossWindowsToolChain.cpp Driver: tweak CrossWindows sanitizer support 2015-10-29 03:36:38 +00:00
Driver.cpp driver: Add a `--rsp-quoting` flag to pick response file quoting. 2016-04-25 21:15:49 +00:00
DriverOptions.cpp Update clang to match llvm r250901. OptTable constructor now takes an ArrayRef. NFC 2015-10-21 16:31:33 +00:00
InputInfo.h Add an Action* member to InputInfo. 2016-01-11 23:15:21 +00:00
Job.cpp [CrashReproducer] Pass -I, -F and -resource-dir to the reproducer script when using modules/vfs 2016-04-04 20:26:57 +00:00
MSVCToolChain.cpp clang-cl: Remove -isystem, add -imsvc. 2016-04-12 19:04:37 +00:00
MinGWToolChain.cpp Revert r253898 and r253899, this breaks mingw compilation on openSUSE. 2016-01-12 10:41:20 +00:00
Multilib.cpp [Driver] Remove `else` after `return` 2015-10-12 14:32:57 +00:00
Phases.cpp Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
SanitizerArgs.cpp [esan] EfficiencySanitizer driver flags 2016-04-21 21:32:04 +00:00
Tool.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
ToolChain.cpp Make FreeBSD and NetBSD use CLANG_DEFAULT_CXX_STDLIB 2016-03-14 14:34:04 +00:00
ToolChains.cpp [esan] EfficiencySanitizer driver flags 2016-04-21 21:32:04 +00:00
ToolChains.h Enable PIE for CloudABI. 2016-04-06 15:37:06 +00:00
Tools.cpp [esan] EfficiencySanitizer driver flags 2016-04-21 21:32:04 +00:00
Tools.h [AMDGPU] Switch linker to amdphdrs + update test 2016-03-29 15:54:09 +00:00
Types.cpp Fix remaining Clang-tidy readability-redundant-control-flow warnings; other minor fixes. 2016-02-12 22:53:10 +00:00