From 01ad5707bf37f914e9d609b97bd660439b2c44c4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 17 May 2017 19:01:34 +0200 Subject: Handle /P diagnostics --- msvc-common/msvc-cl-common | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/msvc-common/msvc-cl-common b/msvc-common/msvc-cl-common index 1a9a2d1..a5eb069 100755 --- a/msvc-common/msvc-cl-common +++ b/msvc-common/msvc-cl-common @@ -13,8 +13,8 @@ source "$src_dir/msvc-common/msvc-common" # File descriptor where the diagnostics will be sent. Unless STDOUT is used -# for something else (e.g., /E), cl.exe sends the diagnostics there. -# Otherwise it goes to STDERR. +# for something else (e.g., /E, /EP), cl.exe sends the diagnostics there. +# Otherwise it goes to STDERR. Plus /P behaves like /E for some reason. # diag=1 @@ -118,9 +118,10 @@ while [ $# -gt 0 ]; do shift ;; - # Detect /E and /EP -- they change where the diagnostics is sent. + # Detect /E, /P, and /EP -- they change where the diagnostics is sent. # [/-]E | \ + [/-]P | \ [/-]EP) diag=2 args=("${args[@]}" "$1") -- cgit v1.1