Hi everyone,
I'm facing a problem with MCUXpresso 11.9.1.
For some reasons in building my project I need to do some other things when I compile, so I created a script that do all I need (build + other things).
In the MCU C Compiler section I set my script as command builder. The script is located in the same folder as the project:

My scripts is working fine: when I build my project using the external builder, every project file is built using my script and the linker process is executed fine.
The problem arises when I need to build a single file: I launch the Build Selected File(s) command and I receive some error messages.
The first time I launched the command the message was:
Info: Internal Builder is used for build
"..\\mybuild.sh" -D__REDLIB__ [...] -o "source\\MIMXRT1064_Project.o" "..\\source\\MIMXRT1064_Project.c"
Cannot run program "..\mybuild.sh": Launching failed
Error: Program "..\mybuild.sh" not found in PATH
PATH=[C:\nxp\MCUXpressoIDE_11.9.1_2170\ide\plugins\com.nxp.mcuxpresso.tools.win32_11.9.1.202402080819\tools\bin;C:\nxp\MCUXpressoIDE_11.9.1_2170\ide\plugins\com.nxp.mcuxpresso.tools.win32_11.9.1.202402080819\buildtools\bin;C:\nxp\MCUXpressoIDE_11.9.1_2170\ide\plugins\com.nxp.mcuxpresso.tools.bin.win32_11.9.1.202402080819\binaries\;C:/nxp/MCUXpressoIDE_11.9.1_2170/ide//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502/jre/bin/server;C:/nxp/MCUXpressoIDE_11.9.1_2170/ide//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502/jre/bin; [...] C:\nxp\MCUXpressoIDE_11.9.1_2170\ide]
Reading the error message I've found that the script folder wasn't in the PATH. So I modified the PATH environment variable to include that folder:


With these settings I receive a different message:
Info: Internal Builder is used for build
"C:\\...\\MIMXRT1064_Project\\mybuild.sh" -D__REDLIB__ [...] -o "source\\MIMXRT1064_Project.o" "..\\source\\MIMXRT1064_Project.c"
Cannot run program "C:\...\MIMXRT1064_Project\mybuild.sh": Launching failed
I receive the same error messages if I use the internal bulder in the global build process.
So it seems that the problem is bound to the internal builder.
Does anyone can help me in making the single file build process work?
Many thanks
Biafra