Skip to content

Commit

Permalink
Bazel fix include script on non outermost project (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Apr 28, 2024
1 parent 69d8a1c commit 5468479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions enzyme/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ cc_library(
data = ["@llvm-project//clang:builtin_headers_gen"],
visibility = ["//visibility:public"],
deps = [
"bundled-includes",
":bundled-includes",
":binop-derivatives",
":blas-attributor",
":blas-derivatives",
Expand Down Expand Up @@ -206,7 +206,7 @@ genrule(
name = "bundled-includes",
srcs = glob(["include/**"]) + ["scripts/bundle-includes.sh"],
outs = ["bundled_includes.h"],
cmd = "scripts/bundle-includes.sh ./include $@",
cmd = "$(location :scripts/bundle-includes.sh) ./include $@",
)
genrule(
name = "gen_enzyme-clang++",
Expand Down
2 changes: 1 addition & 1 deletion enzyme/Enzyme/MLIR/Passes/EnzymeWrapPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ std::vector<DIFFE_TYPE> parseActivityString(StringRef inp) {
ArgActivity.push_back(DIFFE_TYPE::CONSTANT);
else if (str == "enzyme_dupnoneed")
ArgActivity.push_back(DIFFE_TYPE::DUP_NONEED);
else if (str == "enzyme_out")
else if (str == "enzyme_active")
ArgActivity.push_back(DIFFE_TYPE::OUT_DIFF);
else {
llvm::errs() << "unknown activity to parse, found: '" << str << "'\n";
Expand Down

0 comments on commit 5468479

Please sign in to comment.