Skip to content

Commit

Permalink
➿ Deduplicate compilation modes (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmondal authored May 28, 2024
1 parent fe19e4e commit 2fce774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ll/attributes.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ load("//ll:llvm_project_deps.bzl", "LLVM_PROJECT_DEPS")
load("//ll:providers.bzl", "LlInfo")
load(
"//ll:transitions.bzl",
"COMPILATION_MODES",
"transition_to_bootstrap",
"transition_to_cpp",
)
Expand All @@ -31,14 +32,7 @@ DEFAULT_ATTRS = {
the `ll_toolchain`.
""",
default = "cpp",
# TODO: hip_amd, sycl_amd
values = [
"cpp",
"cuda_nvptx",
"hip_amdgpu",
"hip_nvptx",
"bootstrap",
],
values = COMPILATION_MODES,
),
"compile_flags": attr.string_list(
doc = """Flags for the compiler.
Expand Down
1 change: 1 addition & 0 deletions ll/transitions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Transitions used by the `ll_toolchain` rule.
"""

# TODO: hip_amd, sycl_amd
COMPILATION_MODES = [
"bootstrap",
"cpp",
Expand Down

0 comments on commit 2fce774

Please sign in to comment.