Backward compatibility hack so that older runtime versions will still be able to use 1.9 rtdist

This commit is contained in:
rdb 2015-08-09 19:07:24 +02:00
parent 85e3d2ee3a
commit 9dc1a0cbad

View File

@ -258,9 +258,17 @@ initialize(int api_version, const string &contents_filename,
// TODO: Linux multiplatform support. Just add the
// appropriate platform strings to _supported_platforms.
} else {
nout << "Platform string was set by plugin to " << _platform << "\n";
}
if (_supported_platforms.empty()) {
// Hack for older plug-ins, which should still remain compatible with
// newer versions of the runtime distribution.
if (_platform == "win32") {
_supported_platforms.push_back("win_i386");
}
// We always support at least the specific platform on which we're
// running.
_supported_platforms.push_back(_platform);