build: add the task to automatically attach disconnected path.

Not yet enabled on build, as the profiles still require some testing.
This commit is contained in:
Alexandre Pujol 2024-10-12 20:08:21 +01:00
parent e90ccd214c
commit 273485217c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 71 additions and 1 deletions

View file

@ -88,8 +88,13 @@ func Prebuild() {
if abi != nilABI {
prebuild.ABI = abi
}
if prebuild.ABI == 3 {
switch prebuild.ABI {
case 3:
builder.Register("abi3") // Convert all profiles from abi 4.0 to abi 3.0
case 4:
// builder.Register("attach") // Re-attach disconnect path
default:
logging.Fatal("Invalid ABI version: %d", prebuild.ABI)
}
if file != "" {