Skip to content

Commit 07a4ab8

Browse files
authored
Metal: Set the SDK Version metadata. (#408)
1 parent 661dcef commit 07a4ab8

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Manifest.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ version = "1.4.1"
3939

4040
[[LLVM]]
4141
deps = ["CEnum", "LLVMExtra_jll", "Libdl", "Printf", "Unicode"]
42-
git-tree-sha1 = "df115c31f5c163697eede495918d8e85045c8f04"
42+
git-tree-sha1 = "1c614dfbecbaee4897b506bba2b432bf0d21f2ed"
4343
uuid = "929cbde3-209d-540e-8aea-75f648917ca0"
44-
version = "4.16.0"
44+
version = "4.17.0"
4545

4646
[[LLVMExtra_jll]]
47-
deps = ["Artifacts", "JLLWrappers", "LazyArtifacts", "Libdl", "Pkg", "TOML"]
48-
git-tree-sha1 = "7718cf44439c676bc0ec66a87099f41015a522d6"
47+
deps = ["Artifacts", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"]
48+
git-tree-sha1 = "e46e3a40daddcbe851f86db0ec4a4a3d4badf800"
4949
uuid = "dad2f222-ce93-54a1-a47d-0025e8a3acab"
50-
version = "0.0.16+2"
50+
version = "0.0.19+0"
5151

5252
[[LazyArtifacts]]
5353
deps = ["Artifacts", "Pkg"]

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1515

1616
[compat]
1717
ExprTools = "0.1"
18-
LLVM = "4.14.1"
18+
LLVM = "4.17"
1919
Scratch = "1"
2020
TimerOutputs = "0.5"
2121
julia = "1.6"

src/metal.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,5 +723,8 @@ function add_module_metadata!(@nospecialize(job::CompilerJob), mod::LLVM.Module)
723723
air_lang_md = MDNode(air_lang_md; ctx)
724724
push!(metadata(mod)["air.language_version"], air_lang_md)
725725

726+
# set sdk version
727+
sdk_version!(mod, job.config.target.macos)
728+
726729
return
727730
end

0 commit comments

Comments
 (0)