Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/NaClCompile.cs

Issue 69343013: [VS AddIn] Fix default library paths. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 using System; 4 using System;
5 using System.Collections.Generic; 5 using System.Collections.Generic;
6 using System.Text; 6 using System.Text;
7 using System.Collections; 7 using System.Collections;
8 using System.IO; 8 using System.IO;
9 using System.Reflection; 9 using System.Reflection;
10 using System.Resources; 10 using System.Resources;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 186 }
187 } 187 }
188 } 188 }
189 189
190 protected string GenerateCommandLineForSource(ITaskItem sourceFile, 190 protected string GenerateCommandLineForSource(ITaskItem sourceFile,
191 bool fullOutputName=false) 191 bool fullOutputName=false)
192 { 192 {
193 StringBuilder commandLine = new StringBuilder(GCCUtilities.s_Command LineLength); 193 StringBuilder commandLine = new StringBuilder(GCCUtilities.s_Command LineLength);
194 194
195 //build command line from components and add required switches 195 //build command line from components and add required switches
196 string props = xamlParser.Parse(sourceFile, fullOutputName); 196 string props = xamlParser.Parse(sourceFile, fullOutputName, null);
197 commandLine.Append(props); 197 commandLine.Append(props);
198 commandLine.Append(" -c"); 198 commandLine.Append(" -c");
199 199
200 // Remove rtti items as they are not relevant in C compilation and w ill 200 // Remove rtti items as they are not relevant in C compilation and w ill
201 // produce warnings 201 // produce warnings
202 if (SourceIsC(sourceFile.ToString())) 202 if (SourceIsC(sourceFile.ToString()))
203 { 203 {
204 commandLine.Replace("-fno-rtti", ""); 204 commandLine.Replace("-fno-rtti", "");
205 commandLine.Replace("-frtti", ""); 205 commandLine.Replace("-frtti", "");
206 } 206 }
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 protected override string ToolName 418 protected override string ToolName
419 { 419 {
420 get 420 get
421 { 421 {
422 return NaCLCompilerPath; 422 return NaCLCompilerPath;
423 } 423 }
424 } 424 }
425 425
426 } 426 }
427 } 427 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698