fix(cli): CXX path for s390x (#2509)

This commit is contained in:
LongYinan 2025-03-14 13:38:50 +08:00 committed by GitHub
parent 1fe6ad0430
commit 134c1a6778
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,15 +256,11 @@ class Builder {
)
}
if (!process.env.CXX && !process.env.TARGET_CXX) {
this.envs[`CXX`] = join(
toolchainPath,
'bin',
`${this.target.triple}-g++`,
)
this.envs[`CXX`] = join(toolchainPath, 'bin', `${crossTargetName}-g++`)
this.envs[`TARGET_CXX`] = join(
toolchainPath,
'bin',
`${this.target.triple}-g++`,
`${crossTargetName}-g++`,
)
}
if (