Uh oh!
There was an error while loading. Please reload this page.
disallow specification of both -dynamic and -static simultaneously when calling zig build-exe - #8258
disallow specification of both -dynamic and -static simultaneously when calling zig build-exe#8258elerch wants to merge 1 commit into
Conversation
ifreund
left a comment
There was a problem hiding this comment.
I don't think this is a desirable change. The current behavior of the flag set later in the command line overriding any previous flags setting the same thing is inline with the behavior of all other flags. For example, all of the -ffoo/-fno-foo options work this way.
elerch
commented
Mar 15, 2021
I'm not offended either way - it was just the discussion on the other PR so I thought I'd offer the code for consideration. |
data-man
commented
Mar 15, 2021
And it's bad.
|
Vexu
commented
Jun 10, 2021
Hi @elerch, we discussed this in the self hosted compiler meeting and decided that the current behavior of them being able to override each other is desirable. However I have opened #9071 proposal to rename the flags to make this behavior more obvious. |
As it says on the tin. See discussion in #8248