public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Fix elf-nano.specs to work without -save-temps
@ 2017-02-15 15:31 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2017-02-15 15:31 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=be5926babbfb23ded1de2181a7524b8c3eebe34c

commit be5926babbfb23ded1de2181a7524b8c3eebe34c
Author: Thomas Preud'homme <thomas.preudhomme@arm.com>
Date:   Wed Feb 15 10:51:54 2017 +0000

    Fix elf-nano.specs to work without -save-temps
    
    The changes in af272aca591fe1dc0f1be64ae5bda147ea98a047 only works when
    using gcc/g++ with -E or -save-temps, otherwise newlib's newlib.h gets
    used even if -specs=nano.specs is specified. This is because the driver
    only use cpp_options spec for the external cpp tool, not for the
    integrated one.
    
    This patch uses instead cpp_unique_options which is used in all cases:
    it is used directly when the integrated preprocessor is used, and
    indirectly by expansion of cpp_options otherwise.

Diff:
---
 libgloss/arm/elf-nano.specs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libgloss/arm/elf-nano.specs b/libgloss/arm/elf-nano.specs
index 324107e..82594bd 100644
--- a/libgloss/arm/elf-nano.specs
+++ b/libgloss/arm/elf-nano.specs
@@ -1,9 +1,9 @@
 %rename link                nano_link
 %rename link_gcc_c_sequence                nano_link_gcc_c_sequence
-%rename cpp_options		nano_cpp_options
+%rename cpp_unique_options		nano_cpp_unique_options
 
-*cpp_options:
--isystem =/include/newlib-nano %(nano_cpp_options)
+*cpp_unique_options:
+-isystem =/include/newlib-nano %(nano_cpp_unique_options)
 
 *nano_libc:
 -lc_nano


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-15 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 15:31 [newlib-cygwin] Fix elf-nano.specs to work without -save-temps Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).