You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CARGO_TARGET_DIR can be used to force the use of a global, shared target directory// across all rust projects on a machine. Use it if it's set, otherwise use the// configured `targetDirectory` value, and fall back to `${module}/target`.//// We also allow this to be specified in `local.properties`, not because this is// something you should ever need to do currently, but we don't want it to ruin anyone's// day if it turns out we're wrong about that.val target =
getProperty("rust.cargoTargetDir", "CARGO_TARGET_DIR")
?: targetDirectory
?:"${module!!}/target"
And I've realized that getProperty() is defined as follow:
internalfungetProperty(camelCaseName:String, snakeCaseName:String): String? {
val local:String?= localProperties.getProperty(camelCaseName)
if (local !=null) {
return local
}
val global:String?=System.getenv(snakeCaseName)
if (global !=null) {
return global
}
returnnull
}
Version 0.9.3
I've try to change
CARGO_TARGET_DIR
per target like so:As the result, even if, the build folder
build/rustJniLibs/..
is created and rust build succeed,the folder stay empty !
The text was updated successfully, but these errors were encountered: