Skip to content

Commit

Permalink
alwayslink
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Apr 28, 2024
1 parent 16c3d49 commit a4264f8
Show file tree
Hide file tree
Showing 7 changed files with 201 additions and 1,375 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
deps/ReactantExtra/bazel-*
deps/ReactantExtra/MODULE.bazel.lock
*.swp
*.swo
external
Expand Down
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.1.0"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
Cassette = "7057c7e9-c182-5462-911a-8362d720325c"
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
Reactant_jll = "0192cb87-2b54-54ad-80e0-3be72ad8a3c0"
Expand All @@ -18,3 +19,4 @@ ReactantNNlibExt = "NNlib"
[compat]
CEnum = "0.4"
Enzyme = "0.11, 0.12"
Reactant_jll = "0.0.2"
4 changes: 3 additions & 1 deletion deps/ReactantExtra/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cc_toolchain_suite(
toolchains = {
"k8": ":ygg_x86_toolchain",
"darwin": ":ygg_x86_toolchain",
"darwin_arm64": ":ygg_x86_toolchain",
},
)

Expand Down Expand Up @@ -159,6 +160,7 @@ cc_library(
"-Werror=unused-result",
"-Wno-error=stringop-truncation"
],
alwayslink = True,
linkstatic = True,
deps = [
"@enzyme//:EnzymeMLIR",
Expand Down Expand Up @@ -370,4 +372,4 @@ genrule(
],
outs = ["libMLIR_h.jl"],
cmd = "$$JULIA \"--project=$(location //:Project.toml)\" \"$(location //:make.jl)\" \"$(location @llvm-project//mlir:include/mlir-c/Bindings/Python/Interop.h)\" \"$(location @llvm-project//llvm:include/llvm-c/Support.h)\" \"$(locations @llvm-project//mlir:ConversionPassIncGen_filegroup)\" \"$(location @stablehlo//:stablehlo/integrations/c/StablehloAttributes.h)\" \"$@\"",
)
)
Loading

0 comments on commit a4264f8

Please sign in to comment.