github0null / eide

An embedded development environment for mcs51/stm8/avr/cortex-m/riscv on VsCode.
https://em-ide.com
MIT License
617 stars 68 forks source link

[bug] 在切换构建配置时上一次的设置丢失 #276

Closed dukmu closed 7 months ago

dukmu commented 1 year ago

What are you doing? 使用EIDE构建STM32G4工程

Describe the bug 设置好GCC编译配置后切换到ARMC编译,再切换回GCC,链接脚本路径选项又回到了初始值 这个配置应该可以像{project}.arm.options.gcc.json一样保存,方便调试

To Reproduce Steps to reproduce the behavior: 首先使用CubeMX初始化Keil工程和Makefile工程, 然后用EIDE导入Keil工程,使用ARMC编译通过, 切换到GCC编译,设置好startup和链接脚本路径,编译通过 然后切换回ARMC,再切换回GCC,链接脚本路径回到了初始值

Screenshots 屏幕截图 2023-07-28 170819 image

github0null commented 1 year ago

应该使用新建 target 来保存不同的编译配置,对于同一个 target,是不会保存上一次的配置的

https://em-ide.com/docs/advance/project_targets#switch-target