Skip to content

Commit 9b2826a

Browse files
authored
Handle generator should shows version of package with headers parsed. (#344)
* This helps ensure it is crystal clear what version of library the headers are parsed from.
1 parent 8d13ef3 commit 9b2826a

File tree

71 files changed

+138
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+138
-135
lines changed

Generate-HandleWrappers.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ try
2727
$rspPath = Join-Path $PSScriptRoot 'generator.rsp'
2828

2929
Write-Information "Generating response file: $rspPath via GenerateResponseFile target in $generatorProj"
30-
dotnet msbuild -restore -target:GenerateResponseFile -property:HandleGeneratorResponeFilePath=`""$rspPath"`" $generatorProj
30+
dotnet msbuild -tl:off -restore -target:GenerateResponseFile -property:HandleGeneratorResponeFilePath=`""$rspPath"`" $generatorProj
3131

3232
if(!$SkipRun)
3333
{

src/Interop/LlvmBindingsGenerator/LlvmBindingsGenerator.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@
6666
<PropertyGroup>
6767
<HandleGeneratorResponeFilePath Condition="'$(HandleGeneratorResponeFilePath)'==''">LlvmBindingsGenerator.rsp</HandleGeneratorResponeFilePath>
6868
<__GeneratedSourcePath>$([MSBuild]::NormalizeDirectory('..\..\interop\Ubiquity.NET.LLvm.Interop\Generated\Handles'))</__GeneratedSourcePath>
69+
<__LibLLVM_VERSION>$([System.IO.Path]::GetFileName("$(PkgUbiquity_NET_LibLLVM)"))</__LibLLVM_VERSION>
6970
</PropertyGroup>
7071
<ItemGroup>
7172
<__RspContent Include="-l $(PkgUbiquity_NET_LibLLVM)\Content\native" />
7273
<__RspContent Include="-e $(PkgUbiquity_NET_LibLLVM)\Content\native" />
7374
<__RspContent Include="-o $(__GeneratedSourcePath)" />
7475
</ItemGroup>
76+
<Message Importance="high" Text="Generating Response file for headers in v$(__LibLLVM_VERSION)"/>
7577
<WriteLinesToFile File="$(HandleGeneratorResponeFilePath)" Lines="@(__RspContent)" Overwrite="true" />
7678
</Target>
7779
</Project>

src/Interop/Ubiquity.NET.Llvm.Interop/Generated/Handles/LLVMAttributeRef.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool. [LlvmBindingsGenerator]
4-
// Tool Version: 20.1.9-epsilon.0.0.ci.618108218.ZZZ
4+
// Tool Version: 20.1.9-epsilon.0.0.ci.618434732.ZZZ
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -31,7 +31,7 @@ namespace Ubiquity.NET.Llvm.Interop
3131
/// behavior, including, and most likely, memory access violations.
3232
/// </note>
3333
/// </remarks>
34-
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618108218.ZZZ")]
34+
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618434732.ZZZ")]
3535
[NativeMarshalling(typeof(WrappedHandleMarshaller<LLVMAttributeRef>))]
3636
public readonly record struct LLVMAttributeRef
3737
: IWrappedHandle<LLVMAttributeRef>

src/Interop/Ubiquity.NET.Llvm.Interop/Generated/Handles/LLVMBasicBlockRef.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool. [LlvmBindingsGenerator]
4-
// Tool Version: 20.1.9-epsilon.0.0.ci.618108218.ZZZ
4+
// Tool Version: 20.1.9-epsilon.0.0.ci.618434732.ZZZ
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -31,7 +31,7 @@ namespace Ubiquity.NET.Llvm.Interop
3131
/// behavior, including, and most likely, memory access violations.
3232
/// </note>
3333
/// </remarks>
34-
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618108218.ZZZ")]
34+
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618434732.ZZZ")]
3535
[NativeMarshalling(typeof(WrappedHandleMarshaller<LLVMBasicBlockRef>))]
3636
public readonly record struct LLVMBasicBlockRef
3737
: IWrappedHandle<LLVMBasicBlockRef>

src/Interop/Ubiquity.NET.Llvm.Interop/Generated/Handles/LLVMBinaryRef.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool. [LlvmBindingsGenerator]
4-
// Tool Version: 20.1.9-epsilon.0.0.ci.618108218.ZZZ
4+
// Tool Version: 20.1.9-epsilon.0.0.ci.618434732.ZZZ
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -35,7 +35,7 @@ namespace Ubiquity.NET.Llvm.Interop
3535
/// correct usage.
3636
/// </note>
3737
/// </remarks>
38-
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618108218.ZZZ")]
38+
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618434732.ZZZ")]
3939
[NativeMarshalling(typeof(WrappedHandleMarshaller<LLVMBinaryRef>))]
4040
public readonly record struct LLVMBinaryRef
4141
: IWrappedHandle<LLVMBinaryRef>

src/Interop/Ubiquity.NET.Llvm.Interop/Generated/Handles/LLVMBuilderRef.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool. [LlvmBindingsGenerator]
4-
// Tool Version: 20.1.9-epsilon.0.0.ci.618108218.ZZZ
4+
// Tool Version: 20.1.9-epsilon.0.0.ci.618434732.ZZZ
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -35,7 +35,7 @@ namespace Ubiquity.NET.Llvm.Interop
3535
/// correct usage.
3636
/// </note>
3737
/// </remarks>
38-
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618108218.ZZZ")]
38+
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618434732.ZZZ")]
3939
[NativeMarshalling(typeof(WrappedHandleMarshaller<LLVMBuilderRef>))]
4040
public readonly record struct LLVMBuilderRef
4141
: IWrappedHandle<LLVMBuilderRef>

src/Interop/Ubiquity.NET.Llvm.Interop/Generated/Handles/LLVMComdatRef.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool. [LlvmBindingsGenerator]
4-
// Tool Version: 20.1.9-epsilon.0.0.ci.618108218.ZZZ
4+
// Tool Version: 20.1.9-epsilon.0.0.ci.618434732.ZZZ
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -31,7 +31,7 @@ namespace Ubiquity.NET.Llvm.Interop
3131
/// behavior, including, and most likely, memory access violations.
3232
/// </note>
3333
/// </remarks>
34-
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618108218.ZZZ")]
34+
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618434732.ZZZ")]
3535
[NativeMarshalling(typeof(WrappedHandleMarshaller<LLVMComdatRef>))]
3636
public readonly record struct LLVMComdatRef
3737
: IWrappedHandle<LLVMComdatRef>

src/Interop/Ubiquity.NET.Llvm.Interop/Generated/Handles/LLVMContextRef.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool. [LlvmBindingsGenerator]
4-
// Tool Version: 20.1.9-epsilon.0.0.ci.618108218.ZZZ
4+
// Tool Version: 20.1.9-epsilon.0.0.ci.618434732.ZZZ
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -35,7 +35,7 @@ namespace Ubiquity.NET.Llvm.Interop
3535
/// correct usage.
3636
/// </note>
3737
/// </remarks>
38-
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618108218.ZZZ")]
38+
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618434732.ZZZ")]
3939
[NativeMarshalling(typeof(WrappedHandleMarshaller<LLVMContextRef>))]
4040
public readonly record struct LLVMContextRef
4141
: IWrappedHandle<LLVMContextRef>

src/Interop/Ubiquity.NET.Llvm.Interop/Generated/Handles/LLVMContextRefAlias.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool. [LlvmBindingsGenerator]
4-
// Tool Version: 20.1.9-epsilon.0.0.ci.618108218.ZZZ
4+
// Tool Version: 20.1.9-epsilon.0.0.ci.618434732.ZZZ
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -31,7 +31,7 @@ namespace Ubiquity.NET.Llvm.Interop
3131
/// behavior, including, and most likely, memory access violations.
3232
/// </note>
3333
/// </remarks>
34-
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618108218.ZZZ")]
34+
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618434732.ZZZ")]
3535
[NativeMarshalling(typeof(WrappedHandleMarshaller<LLVMContextRefAlias>))]
3636
public readonly record struct LLVMContextRefAlias
3737
: IWrappedHandle<LLVMContextRefAlias>

src/Interop/Ubiquity.NET.Llvm.Interop/Generated/Handles/LLVMDIBuilderRef.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was generated by a tool. [LlvmBindingsGenerator]
4-
// Tool Version: 20.1.9-epsilon.0.0.ci.618108218.ZZZ
4+
// Tool Version: 20.1.9-epsilon.0.0.ci.618434732.ZZZ
55
//
66
// Changes to this file may cause incorrect behavior and will be lost if
77
// the code is regenerated.
@@ -35,7 +35,7 @@ namespace Ubiquity.NET.Llvm.Interop
3535
/// correct usage.
3636
/// </note>
3737
/// </remarks>
38-
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618108218.ZZZ")]
38+
[GeneratedCode("LlvmBindingsGenerator","20.1.9-epsilon.0.0.ci.618434732.ZZZ")]
3939
[NativeMarshalling(typeof(WrappedHandleMarshaller<LLVMDIBuilderRef>))]
4040
public readonly record struct LLVMDIBuilderRef
4141
: IWrappedHandle<LLVMDIBuilderRef>

0 commit comments

Comments
 (0)