aboutsummaryrefslogtreecommitdiff
path: root/msvc-lib-common
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-12 10:16:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-12 10:16:01 +0200
commited7104094b14109ab5cbf8b696e01eebadb764dd (patch)
tree3c9895d56112ed6662b90d55ab33a26158e25b54 /msvc-lib-common
parent634991096d72e1a6ccfd25574d2a9e90fed120f9 (diff)
Translate most link.exe options, other minor cleanups
Diffstat (limited to 'msvc-lib-common')
-rwxr-xr-xmsvc-lib-common10
1 files changed, 5 insertions, 5 deletions
diff --git a/msvc-lib-common b/msvc-lib-common
index 8b23f4f..7f10223 100755
--- a/msvc-lib-common
+++ b/msvc-lib-common
@@ -1,9 +1,11 @@
#! /usr/bin/env bash
-# @@ Do we really need LIB? What's /LIBPATH for?
-#
# Common lib.exe driver that expects the VC and LIB variables to be set for
# the specific MSVC version/configuration.
+#
+# It's not clear/documented why we need LIB or what the /LIBPATH option is
+# for. Perhaps for link-time code generation (/LTCG).
+#
trap "{ exit 1; }" ERR
set -o errtrace # Trap in functions.
@@ -27,7 +29,7 @@ source $(dirname $(realpath ${BASH_SOURCE[0]}))/msvc-common
args=()
while [ $# -gt 0 ]; do
- case $1 in
+ case ${1^^} in # Uppercase for case-insensitive comparison.
# /DEF[:filename]
# /OUT:filename
@@ -86,8 +88,6 @@ while [ $# -gt 0 ]; do
esac
done
-# @@ Do we need this?
-#
export LIB
# lib.exe always sends diagnostics to stdout.