aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/cpp/wrapper/bin/pydir/msvc_cl.py
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2016-06-30 14:19:41 +0000
committerGravatar Lukacs Berki <lberki@google.com>2016-07-01 07:08:02 +0000
commit6b6ff76945c80fb8b11b71d402b5146c85b86859 (patch)
tree69c8f5d23c42973df8d3299c4c16f64a6c71b29d /tools/cpp/wrapper/bin/pydir/msvc_cl.py
parent425ba588a696db553eb2f025a03eed591e378e05 (diff)
Adding features to MSVC CROSSTOOL
This stops Bazel from passing some of the gcc options to wrapper script. Options we get rid of: -c -o -MD -MF -frandom-seed -isystem -iquote -I -- Change-Id: I416b393c6875a2033d5382a644471c416cd5e8d1 Reviewed-on: https://bazel-review.googlesource.com/#/c/3930 MOS_MIGRATED_REVID=126299789
Diffstat (limited to 'tools/cpp/wrapper/bin/pydir/msvc_cl.py')
-rw-r--r--tools/cpp/wrapper/bin/pydir/msvc_cl.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/cpp/wrapper/bin/pydir/msvc_cl.py b/tools/cpp/wrapper/bin/pydir/msvc_cl.py
index b8d4c8a7fd..7983099311 100644
--- a/tools/cpp/wrapper/bin/pydir/msvc_cl.py
+++ b/tools/cpp/wrapper/bin/pydir/msvc_cl.py
@@ -26,11 +26,9 @@ GCCPATTERNS = [
('-Xcompilation-mode=(dbg|fastbuild|opt)', ['$COMPILATION_MODE']),
('-msse', ['/arch:SSE']),
('-msse2', ['/arch:SSE2']),
- ('-c', ['/c']),
('-D(.+)', ['/D$0']),
('-U(.+)', ['/U$0']),
('-E', ['/E']),
- (('-o', '(.+)'), ['$COMPILE_OUTPUT0']),
('-O0', ['/Od']),
('-Os', ['/O1']),
('-O2', ['/O2']),
@@ -38,18 +36,13 @@ GCCPATTERNS = [
('-g', ['/MTd']),
('-fexceptions', ['/U_HAS_EXCEPTIONS', '/D_HAS_EXCEPTIONS=1', '/EHsc']),
('-fomit-frame-pointer', ['/Oy']),
- ('-frandom-seed(.+)', []),
('-fno-rtti', ['/GR-']),
('-frtti', ['/GR']),
('-fPIC', []),
# This is unneeded for Windows.
- (('-isystem', '(.*)'), ['/I$PATH0']),
- (('-iquote', '(.*)'), ['/I$PATH0']),
- ('-I(.+)', ['/I$PATH0']),
(('-include', '(.+)'), ['/FI$PATH0']),
- ('-MD', []),
- (('-MF', '(.+)'), ['$GENERATE_DEPS0']),
+ (('/DEPENDENCY_FILE', '(.+)'), ['$GENERATE_DEPS0']),
('-w', ['/w']),
('-Wall', ['/Wall']),
('-Wsign-compare', ['/we4018']),
@@ -68,7 +61,6 @@ GCCPATTERNS = [
('-Wno-string-plus-int', []),
('-Wl,S', []), # Stripping is unnecessary since msvc uses pdb files.
('-Wl,-rpath(.+)', []),
- (('-x', r'c\+\+-header'), ['$CREATE_PRECOMPILED_HEADER']),
('-B(.+)', []),
('-static', []),
('-shared', []),