Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<DotNetCliTool Version="2">
<Commands>
<Command Name="sharpie" EntryPoint="sharpie-x64-shim" Runner="executable" />
</Commands>
</DotNetCliTool>
9 changes: 8 additions & 1 deletion tools/sharpie/Sharpie.Bind.Tool/Sharpie.Bind.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>

<!-- packing options -->
<!-- there's no x64 version of libClang, so we're only supporting arm64 -->
<!-- there's no x64 version of libClang, so only arm64 is fully functional -->
<!-- an x64 shim is included that prints a helpful error message -->
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
<PackAsTool>true</PackAsTool>
<ToolCommandName>sharpie</ToolCommandName>
Expand Down Expand Up @@ -48,4 +49,10 @@
<None Include="../../../LICENSE" Pack="true" PackagePath="/"/>
<None Include="../../../NOTICE.txt" Pack="true" PackagePath="/"/>
</ItemGroup>

<!-- Include the x64 shim in the nupkg so that x64 users get a helpful error message -->
<ItemGroup Condition="'$(PackAsTool)' == 'true'">
<None Include="sharpie-x64-shim" Pack="true" PackagePath="tools/any/osx-x64/" />
<None Include="DotnetToolSettings.osx-x64.xml" Pack="true" PackagePath="tools/any/osx-x64/DotnetToolSettings.xml" />
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions tools/sharpie/Sharpie.Bind.Tool/sharpie-x64-shim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo "error: error: sharpie is not supported on x64. Please use an Apple Silicon (arm64) Mac." >&2
exit 1
Loading