Skip to content

Instantly share code, notes, and snippets.

@jdrouhard
Created April 19, 2016 23:28
Show Gist options
  • Save jdrouhard/d6daddcfb7abf78d2aee82402c28ebd5 to your computer and use it in GitHub Desktop.
Save jdrouhard/d6daddcfb7abf78d2aee82402c28ebd5 to your computer and use it in GitHub Desktop.
diff --git a/client/remote.cpp b/client/remote.cpp
index 82b145c..250ef47 100644
--- a/client/remote.cpp
+++ b/client/remote.cpp
@@ -711,11 +711,16 @@ maybe_build_local(MsgChannel *local_daemon, UseCSMsg *usecs, CompileJob &job,
}
// Minimal version of remote host that we want to use for the job.
-static int minimalRemoteVersion( const CompileJob& )
+static int minimalRemoteVersion( const CompileJob& job)
{
int version = MIN_PROTOCOL_VERSION;
- if( ignore_unverified())
+ if (ignore_unverified()) {
version = max( version, 31 );
+ }
+
+ if (job.dwarfFissionEnabled()) {
+ version = max( version, 35);
+ }
return version;
}
@mostynb
Copy link

mostynb commented Apr 20, 2016

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment