File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ load("@rules_swiftnav//tools:configure_file.bzl", "configure_file")
12
12
13
13
configure_file(
14
14
name = "config_h",
15
- out = "config.h",
15
+ # check_gendir ensures that files do not leak into the relative path of external targets
16
+ out = "check_gendir/config.h",
16
17
template = "cmake/config.h.in",
17
18
vars = {
18
19
"HAVE_INT16_T": "1",
@@ -105,7 +106,7 @@ configure_file(
105
106
106
107
configure_file(
107
108
name = "check_h",
108
- out = "check.h",
109
+ out = "check_gendir/ check.h",
109
110
template = "src/check.h.in",
110
111
vars = {
111
112
"CHECK_MAJOR_VERSION": "(0)",
@@ -118,7 +119,7 @@ configure_file(
118
119
119
120
configure_file(
120
121
name = "check_stdint_h",
121
- out = "check_stdint.h",
122
+ out = "check_gendir/ check_stdint.h",
122
123
template = "cmake/check_stdint.h.in",
123
124
vars = {
124
125
"HAVE_STDINT_H": "1",
@@ -153,8 +154,8 @@ cc_library(
153
154
":check_h",
154
155
":check_stdint_h",
155
156
],
156
- include_prefix = ".",
157
157
includes = [
158
+ "check_gendir",
158
159
"src",
159
160
],
160
161
linkopts = ["-lpthread"],
You can’t perform that action at this time.
0 commit comments