EDIT: SOLVED:
I use SDK 4.1.7. In my monkey.jungle I have:
project.optimization = 2z
If I set anything in the Monkey C VSC extension's settings: Compiler Options, then I get the following warning:
WARNING: The optimization level is specified both at the command line and in a Jungle file. The Jungle file specification will be ignored.
However when I leave the Compiler Options empty then there's no -O option passed to the compiler.
Similarily, When the Type Check Level is set to anything but Default then I get the warning:
WARNING: The type check level is specified both at the command line and in a Jungle file. The Jungle file specification will be ignored.
However when I set Type Check Level to Default, then no -l option is passed to the compiler.
Executing task: java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar Garmin/ConnectIQ/Sdks/connectiq-sdk-mac-4.1.7-2022-11-21-562b8a195/bin/monkeybrains.jar -o bin/MyApp.prg -f MyApp/monkey.jungle;MyApp/barrels.jungle -y garmin_developer_key.der -d fenix6_sim -w
My launch.json looks like this:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "monkeyc",
"request": "launch",
"name": "Run App",
"stopAtLaunch": false,
"device": "${command:GetTargetDevice}"
},
{
"type": "monkeyc",
"request": "launch",
"name": "Run Tests",
"runTests": true,
"device": "${command:GetTargetDevice}"
}
]
}