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: bazelbuild#5807

Change-Id: Iae10ff439bb3e8513c44ebfc4c174409623991d9
  • Loading branch information
meteorcloudy committed Aug 29, 2018
1 parent 206c19b commit f236c65
Show file tree
Hide file tree
Showing 7 changed files with 551 additions and 51 deletions.
1 change: 1 addition & 0 deletions src/main/cpp/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ cc_library(
visibility = [
":ijar",
"//src/test/cpp/util:__pkg__",
"//src/main/tools:__pkg__",
"//src/tools/launcher:__subpackages__",
"//src/tools/singlejar:__pkg__",
"//third_party/def_parser:__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 f236c65

Please sign in to comment.