From 2de17c91603e4ead13c7a97f53c767ebf5799aa3 Mon Sep 17 00:00:00 2001 From: Rafael Silva Date: Fri, 23 Feb 2024 12:27:11 +0000 Subject: [PATCH] readme: add note about PowerShell command line options On power shell some options like lists can cause issues and need to be wrapped in double quotes --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index dcd9cd517c2..24b9ee498d1 100644 --- a/README.md +++ b/README.md @@ -269,6 +269,22 @@ When changing options after configuration, you may omit the argument `build` if You can have multiple build directories! So if you are regularly building firmware for multiple probes we would recommend keeping an individual build directory configured for each one. +If you are working with PowerShell you may have some issue while trying to configure some options like the enabled target list `-Dtargets=cortexm,stm`: + +``` console +PS C:\...\blackmagic\build> meson configure build -Dtargets=cortexm,stm +ParserError: +Line | 1 | meson configure build -Dtargets=cortexm,stm + | ~ | Missing argument in parameter list. +PS D:\...\blackmagic\build> +``` + +To get around this you may wrap the options with double quotes `"`, in this example: + +```sh +meson configure build "-Dtargets=cortexm,stm" +``` + ### Working with an existing clone (used before the new meson build system was introduced) If you are working with an existing clone of the project where you used the old `make` build system,