From 2b0c3e194299660869eb9a20b740c640b97e3d98 Mon Sep 17 00:00:00 2001
From: Robert Drab <robert.drab@huawei.com>
Date: Wed, 22 Sep 2021 11:55:21 +0200
Subject: [PATCH] gn.bbclass: Remove erroneous -C gn command switch

gn docs state that the output dir should be passed as a last argument of the
gn gen command without any preceding switch

Signed-off-by: Robert Drab <robert.drab@huawei.com>
---
 meta-ohos-staging/classes/gn.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-ohos-staging/classes/gn.bbclass b/meta-ohos-staging/classes/gn.bbclass
index f533f062..ba38dd63 100644
--- a/meta-ohos-staging/classes/gn.bbclass
+++ b/meta-ohos-staging/classes/gn.bbclass
@@ -39,7 +39,7 @@ B = "${WORKDIR}/out"
 
 gn_do_configure() {
     cd ${S}
-    gn gen ${GN_OPTIONS} --args='${GN_ARGS}' -C ${B}
+    gn gen ${GN_OPTIONS} --args='${GN_ARGS}' ${B}
 }
 
 gn_do_compile() {
-- 
GitLab