public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Fix cpp invocation for C++ in nano spec
@ 2017-02-13  8:20 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2017-02-13  8:20 UTC (permalink / raw)
  To: newlib-cvs

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

commit af272aca591fe1dc0f1be64ae5bda147ea98a047
Author: Thomas Preudhomme <thomas.preudhomme@foss.arm.com>
Date:   Tue Feb 7 16:58:27 2017 +0000

    Fix cpp invocation for C++ in nano spec
    
    Hi,
    
    The changes in c028685518a261f6d0dab0d7ed15f9570ab9b3d0 to use
    newlib-nano's include directory work for cc1 but not cc1plus. cc1plus
    comes with its own cpp spec which does not have a name attached to it.
    
    This patch uses the renaming trick on cpp_options instead of cpp, as
    cpp_options is used both by cc1 and cc1plus.

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 575f47d..324107e 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		nano_cpp
+%rename cpp_options		nano_cpp_options
 
-*cpp:
--isystem =/include/newlib-nano %(nano_cpp)
+*cpp_options:
+-isystem =/include/newlib-nano %(nano_cpp_options)
 
 *nano_libc:
 -lc_nano


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

only message in thread, other threads:[~2017-02-13  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13  8:20 [newlib-cygwin] Fix cpp invocation for C++ in nano spec 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).