Skip to content

Commit

Permalink
Merge pull request #208 from vosen/master
Browse files Browse the repository at this point in the history
Fix #202 and #205
  • Loading branch information
vosen committed Mar 6, 2016
2 parents e1ceb2c + 7581c62 commit 611a605
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VisualRust.Project/Launcher/GnuDebugLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ string GetExtraArguments()

string[] GetScriptLines()
{
string debuggerScript = env.GetDebugConfigurationProperty<string>("DebuggerScript");
string debuggerScript = env.DebugConfig.DebuggerScript;
if(String.IsNullOrEmpty(debuggerScript))
return new string[0];
return debuggerScript.Split(new [] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries);
Expand Down
4 changes: 2 additions & 2 deletions VisualRust.Project/Launcher/LauncherEnviroment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ namespace VisualRust.Project.Launcher
class LauncherEnvironment
{
readonly RustProjectNode project;
readonly Configuration.Debug debugConfig;
readonly RustProjectConfig projectConfig;
public Configuration.Debug DebugConfig { get; private set; }

public LauncherEnvironment(RustProjectNode project, Configuration.Debug debugConfig, RustProjectConfig projConfig)
{
this.project = project;
this.debugConfig = debugConfig;
this.DebugConfig = debugConfig;
this.projectConfig = projConfig;
}

Expand Down
2 changes: 1 addition & 1 deletion VisualRust.Project/RustProjectLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private IRustProjectLauncher ChooseLauncher(bool debug)
if(!debug)
return new ReleaseLauncher(environment);
TargetTriple triple = environment.GetTargetTriple();
if(triple.Abi == "msvc")
if(triple != null && triple.Abi == "msvc")
return new MsvcDebugLauncher(environment);
else
return new GnuDebugLauncher(environment, triple);
Expand Down

0 comments on commit 611a605

Please sign in to comment.