Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0818db1

Browse files
committed
Add support for libclang 16
1 parent6b3bddb commit0818db1

File tree

6 files changed

+7620
-7
lines changed

6 files changed

+7620
-7
lines changed

‎.github/workflows/CI.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
-'1.7'
1616
-'1.8'
1717
-'1.9'
18-
-'1.10-nightly'
18+
-'1.10'
19+
-'1.11-nightly'
20+
-'nightly'
1921
os:
2022
-ubuntu-latest
2123
-macos-latest

‎Project.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name ="CBinding"
22
uuid ="d43a6710-96b8-4a2d-833c-c424785e5374"
33
authors = ["Keith Rutkowski <keith@analytech-solutions.com>"]
4-
version ="1.0.11"
4+
version ="1.0.12"
55

66
[deps]
77
Clang_jll ="0ee61d77-7f21-5576-8119-9fcc46b10100"
@@ -10,6 +10,6 @@ Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
1010
Scratch ="6c6a2e73-6563-6170-7368-637461726353"
1111

1212
[compat]
13-
Clang_jll ="^9, ^11, ^12, ^13, ^14, ^15"
13+
Clang_jll ="^9, ^11, ^12, ^13, ^14, ^15, ^16"
1414
Scratch ="^1"
1515
julia ="^1.5"

‎deps/generate.jl‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ const LIBCLANG_PATH = get(ARGS, 1, Clang_jll.libclang_path)
1111
const LIBLLVM_PATH=get(ARGS,2,joinpath(dirname(Base.julia_cmd().exec[1]), Base.LIBDIR,"julia","libLLVM.so"))
1212

1313
withenv("LD_LIBRARY_PATH"=>get(ENV,"LD_LIBRARY_PATH","")*":"*normpath(dirname(LIBLLVM_PATH)))do
14-
dlopen(LIBLLVM_PATH)do lib# needed to hijack the libLLVM that clank will be linked to
14+
dlopen(LIBLLVM_PATH)do lib# needed to hijack the libLLVM that libclang will be linked to
15+
version= CBinding.libclang_version(LIBCLANG_PATH)
16+
1517
@evalc`-std=c99 -I$(dirname(dirname(LIBCLANG_PATH)))/include -L$(dirname(LIBCLANG_PATH)) -lclang`
1618
@evalc"""
1719
#include <time.h>
@@ -55,7 +57,7 @@ withenv("LD_LIBRARY_PATH" => get(ENV, "LD_LIBRARY_PATH", "")*":"*normpath(dirnam
5557

5658

5759
libclang=sanitize(string(libclang))# NOTE: do this _before_ we truncate the file!
58-
open(joinpath(@__DIR__,"libclang-$(CBinding.libclang_version(LIBCLANG_PATH)).jl"),"w+")do io
60+
open(joinpath(@__DIR__,"libclang-$(version).jl"),"w+")do io
5961
println(io, libclang)
6062
end
6163
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp