#259 some VC compile and link arguments are missing

0.85
closed-fixed
Tasks (408)
5
2004-12-08
2004-12-06
Hani Atassi
No

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...

Discussion

  • Gert Driesen

    Gert Driesen - 2004-12-08
    • assigned_to: nobody --> drieseng
    • status: open --> closed-fixed
     
  • Gert Driesen

    Gert Driesen - 2004-12-08

    Logged In: YES
    user_id=707851

    This patch is now also committed to cvs.

    Thanks for the contribution !!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks