From 266d1f21ec16ad992b553540b612bed833621215 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 6 Dec 2023 18:03:04 +0800 Subject: [PATCH] fix(cli): C_FLAGS should be CFLAGS --- cli/src/api/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/api/build.ts b/cli/src/api/build.ts index 08cdcfc3..07b1fcec 100644 --- a/cli/src/api/build.ts +++ b/cli/src/api/build.ts @@ -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)