浏览代码

Do not pass esp32c3.rom.newlib-time.ld to the linker, it causes the ROM version of _isatty_r to be linked instead of the newlib library version.

ccrause 1 年之前
父节点
当前提交
e56052bb32
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      compiler/systems/t_freertos.pas

+ 1 - 2
compiler/systems/t_freertos.pas

@@ -1614,8 +1614,7 @@ begin
 
 
       if idf_version>=40300 then
       if idf_version>=40300 then
         Info.ExeCmd[1]:=Info.ExeCmd[1]+' -T esp32c3.rom.api.ld';
         Info.ExeCmd[1]:=Info.ExeCmd[1]+' -T esp32c3.rom.api.ld';
-      if idf_version>=40400 then
-        Info.ExeCmd[1]:=Info.ExeCmd[1]+' -T esp32c3.rom.newlib-time.ld';
+
       if idf_version<40400 then
       if idf_version<40400 then
         Info.ExeCmd[1]:=Info.ExeCmd[1]+' -L $IDF_PATH/components/esp32c3/ld -T esp32c3.peripherals.ld'
         Info.ExeCmd[1]:=Info.ExeCmd[1]+' -L $IDF_PATH/components/esp32c3/ld -T esp32c3.peripherals.ld'
       else
       else