aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-17 19:01:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-17 19:01:34 +0200
commit01ad5707bf37f914e9d609b97bd660439b2c44c4 (patch)
tree157e5495870e11ac9403250457146785e5e56457
parent7b150aacf1d4f7a9d82892421d4298e1232cdf74 (diff)
Handle /P diagnostics
-rwxr-xr-xmsvc-common/msvc-cl-common7
1 files 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")