From 59fd0791e2c981d86210208308713de9c16c2a6e Mon Sep 17 00:00:00 2001 From: M Starch Date: Tue, 24 Oct 2023 16:17:30 -0700 Subject: [PATCH] Fixing parallel builds --- src/fprime/util/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fprime/util/cli.py b/src/fprime/util/cli.py index 724d25b2..04a9d9d6 100644 --- a/src/fprime/util/cli.py +++ b/src/fprime/util/cli.py @@ -232,7 +232,7 @@ def validate(parsed, unknown): cmake_args.update(d_args) unknown = [arg for arg in unknown if not CMAKE_REG.match(arg)] # Build type only for generate, jobs only for non-generate - elif parsed.command in Target.get_all_targets(): + elif parsed.command in [target.mnemonic for target in Target.get_all_targets()]: parsed.settings = None # Force to load from cache if possible make_args["--jobs"] = 1 if parsed.jobs <= 0 else parsed.jobs # Check if any arguments are still unknown