Skip to content

Conversation

@akoeplinger
Copy link
Member

Removes the need for a system-installed libclang.

Removes the need for a system-installed libclang.
Copy link
Member

@steveisok steveisok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

Comment on lines +931 to +934
<_LibclangSuffix Condition="'$(HostOS)' == 'Windows'">.dll</_LibclangSuffix>
<_LibclangSuffix Condition="'$(HostOS)' == 'OSX'">.dylib</_LibclangSuffix>
<_LibclangSuffix Condition="'$(_LibclangSuffix)' == ''">.so</_LibclangSuffix>
<_LibclangPath>$(_LibclangPackageReferencePath)\tools\libclang$(_LibclangSuffix)</_LibclangPath>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<_LibclangSuffix Condition="'$(HostOS)' == 'Windows'">.dll</_LibclangSuffix>
<_LibclangSuffix Condition="'$(HostOS)' == 'OSX'">.dylib</_LibclangSuffix>
<_LibclangSuffix Condition="'$(_LibclangSuffix)' == ''">.so</_LibclangSuffix>
<_LibclangPath>$(_LibclangPackageReferencePath)\tools\libclang$(_LibclangSuffix)</_LibclangPath>
<_LibclangPath>$(_LibclangPackageReferencePath)\tools\libclang$(LibSuffix)</_LibclangPath>

(eng/native/naming.props is already included in all contexts)

Copy link
Member Author

@akoeplinger akoeplinger Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that doesn't work since we need the extension for the host OS where the offsets-generator runs during the build. naming.props is based off of PackageRID i.e. TargetOS

Copy link
Member

@am11 am11 Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, right, maybe we can create another set there completely based on host if this kind of thing has more than one usage (e.g. CG2 may also be doing similar shenanigans somewhere 😅).

@akoeplinger
Copy link
Member Author

/ba-g failures are unrelated to the offset-tool changes

@akoeplinger akoeplinger merged commit 381ea07 into dotnet:main Oct 24, 2024
@akoeplinger akoeplinger deleted the replace-libclang branch October 24, 2024 22:20
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants