fix(cli): setup cxx env while using napi-cross (#1942)
This commit is contained in:
parent
b6adf8ae5c
commit
0205fd976e
1 changed files with 12 additions and 0 deletions
|
@ -248,6 +248,18 @@ class Builder {
|
|||
`${this.target.triple}-gcc`,
|
||||
)
|
||||
}
|
||||
if (!process.env.CXX && !process.env.TARGET_CXX) {
|
||||
this.envs[`CXX`] = join(
|
||||
toolchainPath,
|
||||
'bin',
|
||||
`${this.target.triple}-g++`,
|
||||
)
|
||||
this.envs[`TARGET_CXX`] = join(
|
||||
toolchainPath,
|
||||
'bin',
|
||||
`${this.target.triple}-g++`,
|
||||
)
|
||||
}
|
||||
if (
|
||||
(process.env.CC === 'clang' &&
|
||||
(process.env.TARGET_CC === 'clang' || !process.env.TARGET_CC)) ||
|
||||
|
|
Loading…
Reference in a new issue