Skip to content

Commit 1f3e2c6

Browse files
committed
[gn] Let tablegen() add root_build_dir to include search path
See #167700 (comment)
1 parent 5442aa1 commit 1f3e2c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/utils/gn/secondary/llvm/utils/TableGen/tablegen.gni

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ template("tablegen") {
3232
config_name = "${target_name}_config"
3333
config(config_name) {
3434
visibility = [ ":$target_name" ]
35-
include_dirs = [ target_gen_dir ]
35+
include_dirs = [
36+
target_gen_dir,
37+
root_build_dir,
38+
]
3639
}
3740

3841
compiled_action(target_name) {

0 commit comments

Comments
 (0)