Update: my link line is too long and exceeds MAX_ARG_STRLEN on linux, which 131072 on my system. I dug through the ninja source to discover it passes your command inline to /bin/sh with the -c option. I replicated this outside of ninja and sh reports the error " Argument list too long". For some reason, ninja doesn't show this output from sh. I also found a
thread in the ninja project with more details. I suspect chromium has an approach that avoids this problem.