-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkgconfig System Module Search Paths #257
Conversation
LGTM, but conflicts. |
Fixed |
@swift-ci Please test and merge |
We should look at the pkg-config sources, I'm not sure this path is even in the general set. |
libs = resolveVariables(value(line: line)).chomp() | ||
} else if line.hasPrefix("Cflags: ") { | ||
cFlags = resolveVariables( value(line: line)).chomp() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not very familiar with the format, but I would recommend trying to get an else
clause in here that will error out if we see something unexpected. This prevents the code from silently failing to work properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not really an exhaustive list of possible cases in the file, there are some things for eg Name:
Description:
etc which we aren't interested in and nor want to parse, how to handle those ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a complete list available? If so, we could just check if it is in the known complete list and ignore if not there.
We can at least partition into the following three cases, right?
- Variable assignment
- Key-value binding (Name: Value)
- Comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think those are the only cases. I'll rework the parser in another PR which should address the parser related comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in fb5e87b
Seems to work very well for |
Report extended results in commandProcessFinished
This aims at implementing : https://github.com/apple/swift-evolution/blob/master/proposals/0063-swiftpm-system-module-search-paths.md
Tested with compiling GTK+3