]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix feature detection with multiple -arch flags 1419/head
authorRyan Schmidt <git@ryandesign.com>
Fri, 16 Nov 2018 09:49:15 +0000 (03:49 -0600)
committerRyan Schmidt <git@ryandesign.com>
Fri, 16 Nov 2018 09:49:15 +0000 (03:49 -0600)
commit46d470c20cc981fb87f4c3b2742f365c292de5d7
tree1108e4073fc750c56d6dad9392dd54b61cf89b06
parentf15f1bfefb218a29f777493302be892a89dfe1be
Fix feature detection with multiple -arch flags

When multiple -arch flags are used, the compiler invokes itself once for
each architecture. Apparently, input on stdin is consumed by the
compilation of the first arch and is no longer available to the
compilation of the second arch, which results in a build failure and the
potentially incorrect determination that a feature is not available. So
write the feature detection source to a file instead of using stdin.
programs/Makefile