From 320d4f1fe695d01f0eae569209c9e36a49a48bfa Mon Sep 17 00:00:00 2001 From: zhuoli Date: Sun, 6 Mar 2022 19:02:31 +0800 Subject: [PATCH] Wordaround for multipule generating rules of thirdparty/jsoncpp Change-Id: Id76757b8dd40c9d7184cba0af1521f9d6f5f3859 Signed-off-by: zhuoli --- ts2panda/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts2panda/BUILD.gn b/ts2panda/BUILD.gn index 3f5e084297..954e903051 100755 --- a/ts2panda/BUILD.gn +++ b/ts2panda/BUILD.gn @@ -81,9 +81,12 @@ action("npm_run_build") { "$ts2abc_root:ts2abc_diagnostic_ts", "$ts2abc_root:ts2abc_irnodes_ts", "$ts2abc_root:ts2abc_src", - "$ts2abc_root/ts2abc:ts2abc", ] + if (is_linux || is_mingw || is_mac) { + deps += [ "$ts2abc_root/ts2abc:ts2abc" ] + } + script = "${ts2abc_root}/scripts/run.py" args = [ "--src-dir", -- Gitee