Skip to content

Commit

Permalink
fix generated header leaking
Browse files Browse the repository at this point in the history
  • Loading branch information
wwieclaw committed Apr 4, 2023
1 parent 33ad9a5 commit 9c65b6d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions third_party/check.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ load("@rules_swiftnav//tools:configure_file.bzl", "configure_file")

configure_file(
name = "config_h",
out = "config.h",
# check_gendir ensures that files do not leak into the relative path of external targets
out = "check_gendir/config.h",
template = "cmake/config.h.in",
vars = {
"HAVE_INT16_T": "1",
Expand Down Expand Up @@ -105,7 +106,7 @@ configure_file(

configure_file(
name = "check_h",
out = "check.h",
out = "check_gendir/check.h",
template = "src/check.h.in",
vars = {
"CHECK_MAJOR_VERSION": "(0)",
Expand All @@ -118,7 +119,7 @@ configure_file(

configure_file(
name = "check_stdint_h",
out = "check_stdint.h",
out = "check_gendir/check_stdint.h",
template = "cmake/check_stdint.h.in",
vars = {
"HAVE_STDINT_H": "1",
Expand Down Expand Up @@ -153,8 +154,8 @@ cc_library(
":check_h",
":check_stdint_h",
],
include_prefix = ".",
includes = [
"check_gendir",
"src",
],
linkopts = ["-lpthread"],
Expand Down

0 comments on commit 9c65b6d

Please sign in to comment.