Check for Rust host and target support

This commit is contained in:
J. Ryan Stinnett
2021-06-22 13:37:33 +01:00
parent 48dc1ab396
commit c57a173649
2 changed files with 23 additions and 2 deletions

View File

@@ -80,6 +80,10 @@ module.exports = class HakEnv {
return this.getRuntimeAbi() + '-' + this.target.platform + '-' + this.target.arch;
}
getRustTarget() {
return this.target.id;
}
isWin() {
return this.target.platform === 'win32';
}