Skip to content

Commit

Permalink
fix(//third_party/tensorrt): Fix include dir for library headers
Browse files Browse the repository at this point in the history
    Signed-off-by: Naren Dasan <[email protected]>
    Signed-off-by: Naren Dasan <[email protected]>

Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Jul 16, 2020
1 parent f0e0e5c commit 22ed5cf
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions third_party/tensorrt/local/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ cc_library(
"include/x86_64-linux-gnu/NvOnnxConfig.h"
]
}),
includes = ["include/"],
includes = select({
":aarch64_linux": ["include/aarch64-linux-gnu"],
"//conditions:default": ["include/x86_64-linux-gnu/"],
}),
visibility = ["//visibility:private"],
)

Expand Down Expand Up @@ -169,7 +172,10 @@ cc_library(
"include/x86_64-linux-gnu/NvOnnxParserRuntime.h",
]
}),
includes = ["include/"],
includes = select({
":aarch64_linux": ["include/aarch64-linux-gnu"],
"//conditions:default": ["include/x86_64-linux-gnu/"],
}),
visibility = ["//visibility:private"],
)

Expand Down Expand Up @@ -204,7 +210,10 @@ cc_library(
"include/x86_64-linux-gnu/NvCaffeParser.h",
]
}),
includes = ["include/"],
includes = select({
":aarch64_linux": ["include/aarch64-linux-gnu"],
"//conditions:default": ["include/x86_64-linux-gnu/"],
}),
visibility = ["//visibility:private"],
)

Expand Down Expand Up @@ -235,7 +244,10 @@ cc_library(
":aarch64_linux": glob(["include/aarch64-linux-gnu/NvInferPlugin*.h"]),
"//conditions:default": glob(["include/x86_64-linux-gnu/NvInferPlugin*.h"])
}),
includes = ["include/"],
includes = select({
":aarch64_linux": ["include/aarch64-linux-gnu"],
"//conditions:default": ["include/x86_64-linux-gnu/"],
}),
visibility = ["//visibility:private"],
)

Expand Down

0 comments on commit 22ed5cf

Please sign in to comment.