diff options
author | 2015-08-11 16:44:21 +0000 | |
---|---|---|
committer | 2015-08-12 15:22:10 +0000 | |
commit | 78c0cc73d3fec13add33b3ac811748647d76b38f (patch) | |
tree | 71fdd959dec21ce52750b6fcf2a28f59733ab272 /src/main/cpp/BUILD | |
parent | 3e791009408bcae7f52ba4ae84a14c6c2460fed1 (diff) |
Avoid command line argument mangling on Windows.
exec(3) under mingw converts every command line argument that looks like Unix path
into Windows path when executing non-mingw images (criteria for non-mingw image is
that the image does not depend on msys-<version>.dll). This affects bazel labels
(`//foo:bar` becomes `/foo:bar` for example).
This CL:
1) Replaces usage of execv(3) with Windows-native CreateProcess.
2) Converts all command line arguments that are indeed paths into Windows paths.
--
MOS_MIGRATED_REVID=100386350
Diffstat (limited to 'src/main/cpp/BUILD')
-rw-r--r-- | src/main/cpp/BUILD | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/cpp/BUILD b/src/main/cpp/BUILD index c1f472b4fd..3a1239f088 100644 --- a/src/main/cpp/BUILD +++ b/src/main/cpp/BUILD @@ -4,8 +4,14 @@ filegroup( name = "blaze_util_os", srcs = select({ - "//src:darwin": ["blaze_util_darwin.cc"], - "//conditions:default": ["blaze_util_linux.cc"], + "//src:darwin": [ + "blaze_util_darwin.cc", + "blaze_util_posix.cc", + ], + "//conditions:default": [ + "blaze_util_linux.cc", + "blaze_util_posix.cc", + ], }), ) |