Closed KageKirin closed 4 years ago
What happens when command line is really long?
Yeah PR would be good.
What happens when command line is really long?
You'll have to use GNU ar in that case.
I quickly verified, but the manual (man ar
) does not mention responsefiles, so yes, this needs fixing.
I'll create the PR shortly.
cc @rhoot
I know this changes default behavior, but it makes the behaviour similar to the gmake generator.
Alternatively, I could also rename the flags
UseObjectResponseFile
and UseLDResponseFile
to NoObjectResponseFile
and NoLDResponseFile
respectively, and inverse the logic in ninja_cpp.lua
and make_cpp.lua
.
I like it this way, having to opt-in to potentially unsupported behavior rather than opt out. Merged.
What happens when command line is really long?
You're screwed, hah. But no more screwed than you were before.
Hi there,
I hope you're doing fine. I stumbled over this annoying issue with responsefiles when using ninja with XCode's
ar
.The error is the following:
coming from this ninja rule:
changing the line to remove the responsefile fixes it.
So the reason for this appears to be a subtle difference between GNU
ar
and BSDar
:GNU ar takes response files with the
@
, eg.@libar.a.rsp
, while BSD ar does not support response files.I guess, I'll prepare a fix for this...
Cheers.