Skip to content

Commit

Permalink
Darwin: Allow for as versions that need '-' for std in.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
iains committed Sep 20, 2024
1 parent cbe1b1c commit 33ccc13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcc/config/darwin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) " \
Expand Down

0 comments on commit 33ccc13

Please sign in to comment.