回复: Scons-users Digest, Vo l 144, Issue 7

"Yu,Zhiwei (YFI,Shanghai,CN)" <[email protected]> Mon, 25 Sep 2023 05:33:16 +0000
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <TY2PR04MB3342E227B4D9675716B39F82EBFCA@TY2PR04MB3342.apcprd04.prod.outlook.com>
Hi Guys,

	I find the wat to remove defalut target from Object function.
	Rplace the Environment CCCOM, CCCOM can set compiler command line.
	For example:
		env.Replace(CCCOM = '$CC $SOURCES -o $TARGET')
		then, the command line will contain the $TARGET
		if I set env.Replace(CCCOM = '$CC $SOURCES -o $TARGETPATH')
		then, the command line will use $TARGETPATH instead of $TARGET. Of course, I need to set Environment TARGETPATH.

Best Regards!

于志伟
Software Engineer
延锋科技
------------------------------------
[email protected]

  

-----邮件原件-----
发件人: Scons-users <[email protected]> 代表 [email protected]
发送时间: 2023年9月25日 4:26
收件人: [email protected]
主题: Scons-users Digest, Vol 144, Issue 7

CAUTION: This email originated from outside of the organization. DO NOT click links or open attachments unless you recognize the sender and know the content is safe.


Send Scons-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://pairlist4.pair.net/mailman/listinfo/scons-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific than "Re: Contents of Scons-users digest..."


Today's Topics:

   1. How remove defalut target from Object function
      (Yu,Zhiwei (YFI,Shanghai,CN))
   2. Re: How remove defalut target from Object function (Mats Wichmann)


----------------------------------------------------------------------

Message: 1
Date: Sun, 24 Sep 2023 12:49:36 +0000
From: "Yu,Zhiwei (YFI,Shanghai,CN)" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Scons-users] How remove defalut target from Object function
Message-ID:
        <TY2PR04MB3342FDECC677936B27867FA3EBFDA@TY2PR04MB3342.apcprd04.prod.outlook.com>

Content-Type: text/plain; charset="utf-8"

Hi Guys,

????I am trying to use Scons with IAR, IAR is a embedded IDE.
????For iccarm(IAR compiler), It's unnecessary to set target name, I just set the directory of object file.
????For example,
???????iccarm.exe -o /Debug/Obj   /Src/main.c
????But if I don't set target file name, Scons will set default target file directory and name which base on the source file.
????I want to use iccarm method that set the target directory only, and remove default object file name from Object function.
????How can I do it.

????Thanks!


Best Regards!


???

Software Engineer

????

------------------------------------

[email protected]<mailto:[email protected]>



[YF_logo_PNG]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20230924/6dc3436e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-YF_logo_PN.png
Type: image/png
Size: 5412 bytes
Desc: Outlook-YF_logo_PN.png
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20230924/6dc3436e/attachment-0001.png>

------------------------------

Message: 2
Date: Sun, 24 Sep 2023 14:26:00 -0600
From: Mats Wichmann <[email protected]>
To: [email protected]
Subject: Re: [Scons-users] How remove defalut target from Object
        function
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 9/24/23 06:49, Yu,Zhiwei (YFI,Shanghai,CN) wrote:
> Hi Guys,
>
> ????I am trying to use Scons with IAR, IAR is a embedded IDE.
> ????For iccarm(IAR compiler), It's unnecessary to set target name, I 
> just set the directory of object file.
> ????For example,
> ???????iccarm.exe -o /Debug/Obj? ?/Src/main.c ????But if I don't set 
> target file name, Scons will set default target file directory and 
> name which base on the source file.
> ????I want to use iccarm method that set the target directory only, 
> and remove default object file name from Object function.
> ????How can I do it.

This concept is roughly the same as "batch" building, which is only explicitly supported right now for the Microsoft compiler - you can see a note here:

https://scons.org/doc/production/HTML/scons-man.html#cv-MSVC_BATCH

It's not that this hasn't come up before (see, for example:
https://github.com/SCons/scons/issues/1923), but the work to expand this to other places hasn't been contributed yet.  Not sure which tool you're using to run iccarm, so it's hard to advise further at this point.



------------------------------

Subject: Digest Footer

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users


------------------------------

End of Scons-users Digest, Vol 144, Issue 7
*******************************************
_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users