fix(cli): C_FLAGS should be CFLAGS (#1842)

This commit is contained in:
LongYinan 2023-12-06 18:04:00 +08:00 committed by GitHub
commit 016a0668fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,7 +244,7 @@ class Builder {
(process.env.TARGET_CC === 'clang' || !process.env.TARGET_CC)) ||
process.env.TARGET_CC === 'clang'
) {
this.envs.C_FLAGS = `--sysroot=${this.envs.TARGET_SYSROOT}`
this.envs.CFLAGS = `--sysroot=${this.envs.TARGET_SYSROOT}`
}
} catch (e) {
debug.warn('Pick cross toolchain failed', e as Error)