Respect CARGO_TARGET_DIR in native build script (#1441)
This commit is contained in:
parent
f196309295
commit
3764cc615a
1 changed files with 5 additions and 1 deletions
|
|
@ -44,7 +44,11 @@ try {
|
|||
}
|
||||
|
||||
// Locate the built library
|
||||
const targetDir = path.join(nativeRoot, "target", profile);
|
||||
const cargoTargetRoot = process.env.CARGO_TARGET_DIR
|
||||
? path.resolve(process.env.CARGO_TARGET_DIR)
|
||||
: path.join(nativeRoot, "target");
|
||||
|
||||
const targetDir = path.join(cargoTargetRoot, profile);
|
||||
const platformTag = `${process.platform}-${process.arch}`;
|
||||
|
||||
const libraryNames = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue