Fix cpp invocation for C++ in nano spec

Hi,

The changes in c028685518 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.
This commit is contained in:
Thomas Preudhomme 2017-02-07 16:58:27 +00:00 committed by Corinna Vinschen
parent 135c0c8368
commit af272aca59
1 changed files with 3 additions and 3 deletions

View File

@ -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