linker: arcmwdt: use preprocess opiton -E.

-P is an option that was inherited from the old MetaWare compiler.
[ccac foo.c -P] is actually a shortcut for: [ccac -E foo.c -o foo.i].
In new version of mwdt, -P option can't redirect the output. we need
to use -E option, which works in all versions.

-P:  Preprocess the file and write it to <src>.i (C) or
      <src>.ii(C++). No compilation is performed.

-E:  Run preprocessor only.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
Watson Zeng 2021-03-17 11:34:38 +08:00 committed by Anas Nashif
commit 1b99f0e67f

View file

@ -49,7 +49,7 @@ macro(configure_linker_script linker_script_gen linker_pass_define)
${current_defines}
${linker_pass_define}
${LINKER_SCRIPT}
-P
-E
-o ${linker_script_gen}
VERBATIM
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}