Esp-32 compiler error xtensa-esp32-elf-g++: error: unrecognized command line option '--short'

Hello,

Since I moved my enviroment from Mac to windows and re-installing plateformIO from scratch,
I can’t compile any project I made.

I got that error:
xtensa-esp32-elf-g++: error: unrecognized command line option ‘–short’

I guess i missed something obvious but can’t figure what.

thanks.
Lc

And in which IDE and when does the error occur? When compiling? What’s the full verbose output (pio run -v / Verbose Build)?

sorry i forgot the basis: IDE visualstudio and it happens during compiling.

Ok, i found out the culprit:

!echo '-DPIO_SRC_REV=\\"'$(git rev-parse --short HEAD)'\\"'

I suppose that line doesn’t worked as expected under windows…

thanks anyway :slight_smile: