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 cea93b5
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.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <memory>
#include <string>

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

namespace bazel {
namespace windows {

Expand Down

0 comments on commit cea93b5

Please sign in to comment.