]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin: Allow for as versions that need '-' for std in.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 18 Sep 2024 16:46:32 +0000 (17:46 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 20 Sep 2024 15:20:50 +0000 (16:20 +0100)
Recent versions of Xcode as require a dash to read from standard
input.  We can use this on all supported OS versions so make it
unconditional.  Patch from Mark Mentovai.

gcc/ChangeLog:

* config/darwin.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): New.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/config/darwin.h

index 377599074a750b5e04872afd9278c0f6e7b3542f..0d8886c026c66ab0c09e268a5134ad782a1ba697 100644 (file)
@@ -648,6 +648,8 @@ extern GTY(()) int darwin_ms_struct;
 #define ASM_OPTIONS "%{v} %{w:-W} %{I*}"
 #endif
 
+#define AS_NEEDS_DASH_FOR_PIPED_INPUT
+
 /* Default Darwin ASM_SPEC, very simple. */
 #define ASM_SPEC \
 "%{static} -arch %(darwin_arch) " \