Share

NAnt - A .NET Build Tool

Tracker: Bugs

5 some VC compile and link arguments are missing - ID: 1080237
Last Update: Comment added ( drieseng )

I noticed the following arguments are missing when
compiling VC++ solutions:

VCCLCompilerTool:
/Wp64
/Gm
/RTCs, /RTCu, /RTC1
/Zc:wchar_t

VCLinkerTool:
/OPT:NOREF, /OPT:REF
/OPT:NOICF, /OPT:ICF

I am using Visual Studio 2003... These options are
important and without them you will get differnet
outputs between the Visual Studio build and NAnt
build.

RESOLUTION:

To Fix I added the following code to the function:
NAnt.VSNet.VcArgumentMap.CreateCLArgumentMap()
map.AddBool
("Detect64BitPortabilityProblems", "/Wp64");
map.AddBool("MinimalRebuild", "/Gm");
map.AddEnum("BasicRuntimeChecks", null,
null, "/RTCs", "/RTCu", "/RTC1");
map.AddBool
("TreatWChar_tAsBuiltInType", "/Zc:wchar_t");

I added the following code to the function:
NAnt.VSNet.VcArgumentMap.CreateLinkerArgumentM
ap()
map.AddEnum("OptimizeReferences", "/OPT:",
null, "NOREF", "REF");
map.AddEnum("EnableCOMDATFolding", "/OPT:",
null, "NOICF", "ICF");

Hope this helps...


Hani Atassi ( haniatassi ) - 2004-12-06 20:53

5

Closed

Fixed

Gert Driesen

Tasks

0.85

Public


Comment ( 1 )

Date: 2004-12-08 08:02
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

This patch is now also committed to cvs.

Thanks for the contribution !!


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2004-12-08 08:02 drieseng
resolution_id None 2004-12-08 08:02 drieseng
assigned_to nobody 2004-12-08 08:02 drieseng
close_date - 2004-12-08 08:02 drieseng