Skip to content

Conversation

@luispadron
Copy link

@luispadron luispadron commented Jun 7, 2023

Fixes an excluded source file in cmark-gfm that is required by utf8.c.

Running swift build on swift-cmark succeeds. This succeeds because clang defaults to looking in the source file's directory when resolving includes. The clang invocation is:

/Applications/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -fobjc-arc -target x86_64-apple-macosx10.13 -g -O0 -DSWIFT_PACKAGE=1 -DDEBUG=1 -fblocks -index-store-path /Users/chuck/code/apple/swift-cmark/.build/x86_64-apple-macosx/debug/index/store -fmodules -fmodule-name=cmark_gfm -I /Users/chuck/code/apple/swift-cmark/src/include -fmodules-cache-path=/Users/chuck/code/apple/swift-cmark/.build/x86_64-apple-macosx/debug/ModuleCache -isysroot /Applications/Xcode-14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -F /Applications/Xcode-14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -fPIC -MD -MT dependencies -MF /Users/chuck/code/apple/swift-cmark/.build/x86_64-apple-macosx/debug/cmark_gfm.build/utf8.c.d -c /Users/chuck/code/apple/swift-cmark/src/utf8.c -o /Users/chuck/code/apple/swift-cmark/.build/x86_64-apple-macosx/debug/cmark_gfm.build/utf8.c.

Reported in: cgrindel/rules_swift_package_manager#400

Fixes an excluded source file in `cmark-gfm` that is required by [utf8.c](https://github.com/apple/swift-cmark/blob/gfm/src/utf8.c#L237).
@luispadron luispadron marked this pull request as ready for review June 7, 2023 20:29
@luispadron luispadron requested a review from cgrindel June 7, 2023 20:30
Copy link

@QuietMisdreavus QuietMisdreavus left a comment

Choose a reason for hiding this comment

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

Nice catch, thanks!

@QuietMisdreavus QuietMisdreavus merged commit b1c49eb into swiftlang:gfm Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants