Fix quotes in native CPP intermediate compilation

Continuation of path quote fixes from:
96c62d2d25

@livarcocc/@brthor, PTAL
This commit is contained in:
Senthil 2015-11-19 16:45:54 -08:00
parent 96c62d2d25
commit 28d0236bb0

View file

@ -68,11 +68,13 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
argsList.Add("/c"); argsList.Add("/c");
// Add Includes // Add Includes
var win7CppSdkPath = Path.Combine(config.AppDepSDKPath, "CPPSdk\\win7");
argsList.Add("/I"); argsList.Add("/I");
argsList.Add(Path.Combine(config.AppDepSDKPath, "CPPSdk\\win7")); argsList.Add($"\"{win7CppSdkPath}\"");
var cppSdkPath = Path.Combine(config.AppDepSDKPath, "CPPSdk");
argsList.Add("/I"); argsList.Add("/I");
argsList.Add(Path.Combine(config.AppDepSDKPath, "CPPSdk")); argsList.Add($"\"{cppSdkPath}\"");
// Configuration Based Compiler Options // Configuration Based Compiler Options
argsList.Add(ConfigurationCompilerOptionsMap[config.BuildType]); argsList.Add(ConfigurationCompilerOptionsMap[config.BuildType]);
@ -83,7 +85,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
// Input File // Input File
var inCppFile = DetermineInFile(config); var inCppFile = DetermineInFile(config);
argsList.Add(inCppFile); argsList.Add($"\"{inCppFile}\"");
this.CompilerArgStr = string.Join(" ", argsList); this.CompilerArgStr = string.Join(" ", argsList);
} }
@ -124,4 +126,4 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
} }
} }
} }