Repository navigation
Implement issue #72 "Support gcc "-Wl" linker pass through option" - #73
Conversation
|
This seems very desirable indeed. |
|
I somehow lost track of this PR - need to check why PR fails here. We are using this patch in Coq since quite a while and it works fine there. |
|
The CI failure is due to incompatibility with OCaml master. It is the same failure as all other recent tests have. See e.g. |
|
This is a good idea - would you have a chance to rebase it (CI should then pass - the failure was indeed unrelated), but could you also a note about I think it's acceptable for these to be passed on verbatim to the MSVC linker as well - in cases where it's a common option it'll work, and we can deal with actually translating options as and when the need arises. |
|
Sure I will rebase and look and look into -Wl |
f669019 to
20f0d49
Compare
|
I took the liberty of rebasing this - @alainfrisch, does it look OK to you? |
Thanks - I appreciate it! Your comment means that I should update the documentation? Sorry for the delays - I am quite busy these days. |
|
@MSoegtropIMC - that's no problem at all! The comment I'd left was to mention that |
Thanks! One might want to mention that one can pass only one argument with -Wl at a time - several comma separated arguments as the syntax might suggest and gcc supports it - are not supported. Or I (or someone) could fix this ... |
|
P.S.: One can give of cause several -Wl arguments. |
|
Ah, that's a good point - is that simply a matter of splitting on |
|
(my impression from https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options is that the splitting is simply done on commas) |
I would think that the quotes are handled by the shell anyway, so that flexlink doesn't see them. So my assumption is that a simple split on , is sufficient. The only question is what happens with double commas or commas at the end, but I think once can do this garbage in - garbage out. The point of this is compatibility with make files targeting gcc and it is sufficient to support what is out there in the wild. |
Yes, this LGTM! (Perhaps just update the CHANGES file?) |
|
If you're happy to push a commit with the (noted re changes, @alainfrisch - although I was going to go through the branch history and update it shortly too - I think we're nearly at a collected enough point for 0.38!) |
|
Actually, the compatibility layer change isn't entirely trivial, but I think that the patch is useful to you even when it can online handle a single argument, right? So I've merged this and put my WIP for the splitting into #85. |
This PR implements issue #72.