Skip to content

Commit

Permalink
Replace linkopts with pragma to fix bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Hogeland committed May 18, 2021
1 parent b376ea5 commit f38831f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/native/windows/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ cc_library(
"file.h",
"util.h",
],
linkopts = [
"-DEFAULTLIB:advapi32.lib", # RegGetValueW
],
visibility = [
"//src/main/cpp:__subpackages__",
"//src/main/tools:__pkg__",
Expand Down
2 changes: 2 additions & 0 deletions src/main/native/windows/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#define IO_REPARSE_TAG_PROJFS 0x9000001C
#endif

#pragma comment(lib, "advapi32.lib") //RegGetValueW

namespace bazel {
namespace windows {

Expand Down

0 comments on commit f38831f

Please sign in to comment.