Add option to specify language of CSourceFiles#20687
Conversation
2156522 to
f73ed36
Compare
std.Build.Module.addForeignSourceFile (non-breaking)
Actually the I did notice though, in your PR there is no |
6581419 to
c4dfa85
Compare
ah my bad, I casually read the diff in the web interface and misread.
You're right! thanks. |
4b6eb4d to
54bf51e
Compare
fdb4981 to
1bc8dd6
Compare
|
Is there anything that needs to be done before merging? Thanks. |
ifreund
left a comment
There was a problem hiding this comment.
This looks good to me, sorry for the long wait :/
which is now supported thanks to ziglang#20687 The same source.h file can be both a c-header to include, and compiled as a C file (with a #define as toggle. closes ziglang#19423
Closes #20655
The
addCSourceFilefunctions gain an optionallanguagefield which defaults to the current behavior (find the language by the file extension of each input).This does not add support for any new languages beyond what
addCSourceFilealready supports: the C languages and assembly.