Skip to content

Commit

Permalink
org_llvm_openmp: add omp-tools.h to bundled.BUILD.bazel
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Czarnecki <[email protected]>
  • Loading branch information
lpawelcz authored and QuantamHD committed May 25, 2023
1 parent 3958f3e commit af96df4
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion dependency_support/org_llvm_openmp/bundled.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@

cc_library(
name = "openmp",
hdrs = ["runtime/src/include/omp.h"],
hdrs = [
"runtime/src/include/omp.h",
"runtime/src/include/omp-tools.h",
],
srcs = [
"runtime/src/kmp.h",
"runtime/src/kmp_alloc.cpp",
Expand Down Expand Up @@ -116,6 +119,19 @@ genrule(
)
)

genrule(
name = "omp_tools_header",
srcs = [
"runtime/src/include/omp-tools.h.var",
],
outs = ["runtime/src/include/omp-tools.h"],
cmd = (
"cat " +
"$(location runtime/src/include/omp-tools.h.var) " +
"> $@"
)
)

genrule(
name = "default_i18n",
srcs = ["@rules_hdl//dependency_support/org_llvm_openmp:kmp_i18n_default.inc"],
Expand Down

0 comments on commit af96df4

Please sign in to comment.