[Scons-users] Multiple ways to build the same target

Bill Deegan bill at baddogconsulting.com
Sat Oct 17 15:45:09 EDT 2015


Maciej,

You can specify the target (output file) in a
env.Object(target='abc_s_file.o','abc.S') call.

=-Bill

On Sat, Oct 17, 2015 at 12:07 PM, Maciej R <marogi at o2.pl> wrote:

> Hi,
>
> I am trying to use SCons to build an elf for embedded ARM platform and I
> need to compile files from external SDK. Startup code is provided in 3
> files  with the same name, but different extensions - .h, .c and .S. Now,
> .c and .S are generating the same target object (.o) and clashing with this
> error:
> scons: *** Multiple ways to build the same target were specified
> for: platform/devices/startup/startup.o
>  (from ['platform/devices/startup/startup.c'] and from
> ['platform/devices/startup/startup.S’]).
>
> I tried adding my own builder for ASM, removing ‘.S’ from
> env[‘CPPSUFFIXES’] and even a custom emitter, but I either get the same
> target for both files or no target at all.
>
> How can I fix this issue? How could I change suffix generated for ‘.S’
> files and remove them being parsed by Object builder?
>
> Thanks,
> Maciej
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20151017/94c4a32e/attachment.html>


More information about the Scons-users mailing list