Forum: System Workbench for STM32

SW4STM32 v2.0 fails to build imported project from v1.13.1

If I modify the USE_HAL_DRIVER definition to USE_HAL_DRIVER=1 then it, too, gets corrupted with spurious single-quotes on the command line:

 arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=c99 '-D__weak=__attribute__((weak))' '-DUSE_HAL_DRIVER=1' -DSTM32L476xx ... 


So the bug appears to be in the handling of the -D name=definition form of the option

https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Preprocessor-Options.htmlQuestion

EDIT

Note that the spurious single-quotes do not appear in the GUI display of the command-line options in the Properties view

2017 06 20 (10)