-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
swift: Pass C base compile options to swiftc #14296
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
Conversation
c392940
to
c97b55c
Compare
c5af688
to
e79331a
Compare
e79331a
to
31441b1
Compare
a3461bb
to
d5df540
Compare
d5df540
to
be6623a
Compare
@2xsaiko can you rebase to check it the ci failure goes away? |
be6623a
to
f1c7bf3
Compare
Failure is unrelated. |
1e29c7d
to
88f6478
Compare
88f6478
to
5b9a75e
Compare
@2xsaiko this looks good, and we're past the release freeze, if you can rebase this I'll go ahead and merge. |
Oh, just noticed! Should this be added in get_option_compile_args and not get_option_std_args since that's the method it also calls? EDIT: or actually, I think this should just call get_option_std_args here since that's what actually adds the -std option. Did this change recently? EDIT 2: Actually, let me add some tests as well so this does not happen in the future… |
148672c
to
8478709
Compare
@2xsaiko hopefully last rebase to fix CI, please :) (Yes, the separate method for std was added recently to fix a CUDA bug. Thanks for adjusting) |
8478709
to
080246a
Compare
If the C/Obj-C source code needs a particular standard version, swiftc should know about it so it can parse imported headers correctly.
(This makes more sense with C++ support (commit 2xsaiko@push-nmuxysxxokuy), since setting the standard version is more common there, and was pulled out of #14261, but still applies for C as well)