Merge pull request #272 from dotnet/quotes
Fix quotes in native CPP intermediate compilation
This commit is contained in:
commit
b9666d0fea
1 changed files with 6 additions and 4 deletions
|
@ -68,11 +68,13 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
argsList.Add("/c");
|
||||
|
||||
// Add Includes
|
||||
var win7CppSdkPath = Path.Combine(config.AppDepSDKPath, "CPPSdk\\win7");
|
||||
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(Path.Combine(config.AppDepSDKPath, "CPPSdk"));
|
||||
argsList.Add($"\"{cppSdkPath}\"");
|
||||
|
||||
// Configuration Based Compiler Options
|
||||
argsList.Add(ConfigurationCompilerOptionsMap[config.BuildType]);
|
||||
|
@ -83,7 +85,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
|
||||
// Input File
|
||||
var inCppFile = DetermineInFile(config);
|
||||
argsList.Add(inCppFile);
|
||||
argsList.Add($"\"{inCppFile}\"");
|
||||
|
||||
this.CompilerArgStr = string.Join(" ", argsList);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue