Skip to content

Commit

Permalink
Windows, build-runfiles: Implement build-runfiles for Windows
Browse files Browse the repository at this point in the history
Working towards: #5807

@laszlocsomor

Closes #6024.

Change-Id: I2e1fb56f7686872f5e7d4724c93c1ad2e6e02311
PiperOrigin-RevId: 210905364
  • Loading branch information
meteorcloudy authored and Copybara-Service committed Aug 30, 2018
1 parent 86d4433 commit b592dbd
Show file tree
Hide file tree
Showing 7 changed files with 565 additions and 53 deletions.
1 change: 1 addition & 0 deletions src/main/cpp/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ cc_library(
],
visibility = [
":ijar",
"//src/main/tools:__pkg__",
"//src/test/cpp/util:__pkg__",
"//src/tools/launcher:__subpackages__",
"//src/tools/singlejar:__pkg__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1167,10 +1167,6 @@ public void reportInvalidOptions(EventHandler reporter) {
fragment.reportInvalidOptions(reporter, this.buildOptions);
}

if (OS.getCurrent() == OS.WINDOWS && runfilesEnabled()) {
reporter.handle(Event.error("building runfiles is not supported on Windows"));
}

if (options.outputDirectoryName != null) {
reporter.handle(Event.error(
"The internal '--output directory name' option cannot be used on the command line"));
Expand Down
1 change: 1 addition & 0 deletions src/main/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ cc_binary(
"//src/conditions:windows": ["build-runfiles-windows.cc"],
"//conditions:default": ["build-runfiles.cc"],
}),
deps = ["//src/main/cpp/util:filesystem"],
)

cc_binary(
Expand Down
Loading

0 comments on commit b592dbd

Please sign in to comment.