[Scons-users] Adding support for another C/C++ compiler
Bobby Casey
beecee808 at gmail.com
Mon Jan 9 11:53:59 EST 2017
In my case I added support for a compiler by setting the CC, LINK, AR,
AS, CCFLAGS, LINKFLAGS, ASFLAGS, and ARFLAGS environment variables.
If you're not building assembly code and/or generating archives you
could probably get away with CC, CCFLAGS, LINK, and LINKFLAGS.
On Mon, Dec 19, 2016 at 1:05 PM, Bill Deegan <bill at baddogconsulting.com> wrote:
> Dan,
>
> Likely you can make all the changes you need by changing various
> environment() variables.
> creating a new builder is most likely overkill.
> Unless there's a syntactical difference in how files are included, or other
> dependency differences.
>
> If you can specify the required command line forms vs the defaults it
> shouldn't be too hard to help you make the appropriate changes.
>
>
> -Bill
>
> On Sun, Dec 18, 2016 at 6:20 AM, Dan Čermák <dan.cermak at cgc-instruments.com>
> wrote:
>>
>> Hi folks,
>>
>> I am currently using SCons for an embedded C++ project where I also have
>> to
>> use a proprietary C & C++ compiler that seems to be unsupported in SCons.
>>
>> I have been able to get it to work by overriding the CCCOM, LINKCOM,
>> CXXCOM
>> variables (and some others), but it is kind of hacky, since the compiler
>> requires certain parameters to be at certain positions and also seems to
>> need
>> the C & CXXFLAGS, too.
>>
>> What would be the proper way to add support for such a compiler
>> (especially
>> considering its interesting requirements)? I haven't been able to find a
>> lot
>> of info on the net concerning this. Could maybe someone provide me with a
>> starting point or a good example?
>>
>>
>> Thanks in advance,
>>
>> Dan
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
More information about the Scons-users
mailing list