Closed lanjackg2003 closed 1 year ago
Bot detected the issue body's language is not English, translate it automatically.
Title: xmake does not support using sdcc's sdasstm8 tool to compile .s files
支持stm8汇编器的PR请求
手动切换汇编编译器为使用stm8汇编器
xmake f -p cross -a stm8 --toolchain=sdcc --sdk="{路径}" --as=sdasstm8
否则默认使用sdcc
编译验证
@waruqi
merge 了
Bot detected the issue body's language is not English, translate it automatically.
merged
描述问题
使用
xmake f -p cross -a stm8 --toolchain=sdcc --sdk="E:/SDCC" --as=sdasstm8
配置工程,然后执行编译命令xmake -rv
期待的结果
希望xmake支持使用sdasstm8编译.s文件
错误信息
error: ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: cannot import "core.tool.sdasstm8" module! stack traceback: @programdir\core\base\utils.lua:290: in function <@programdir\core\base\utils.lua:280> [C]: in function 'error' @programdir\core\base\os.lua:913: in function 'os.raiselevel' (...tail calls...) ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:56: in field 'co_start_withopt' @programdir\modules\private\async\runjobs.lua:217: in function <@programdir\modules\private\async\runjobs.lua:162> [C]: in function 'xpcall' @programdir\core\base\utils.lua:280: in function 'base/utils.trycall' @programdir\core\base\scheduler.lua:520: in function 'base/scheduler.co_group_begin' ...mdir\core\sandbox\modules\import\core\base\scheduler.lua:94: in field 'co_group_begin' @programdir\modules\private\async\runjobs.lua:162: in function <@programdir\modules\private\async\runjobs.lua:56> (...tail calls...) @programdir\actions\build\build.lua:259: in function <@programdir\actions\build\build.lua:247> (...tail calls...) @programdir\actions\build\main.lua:109: in global '_do_build' @programdir\actions\build\main.lua:180: in function <@programdir\actions\build\main.lua:173> [C]: in function 'xpcall' @programdir\core\base\utils.lua:280: in function 'base/utils.trycall' @programdir\core\sandbox\modules\try.lua:117: in global 'try' @programdir\actions\build\main.lua:171: in function <@programdir\actions\build\main.lua:133> (...tail calls...) [C]: in function 'xpcall' @programdir\core\base\utils.lua:280: in function 'base/utils.trycall' (...tail calls...) @programdir\core\base\task.lua:501: in function 'base/task.run' @programdir\core\main.lua:298: in upvalue 'cotask' @programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397>
相关环境
系统:: Windows11 Pro Xmake:v2.8.1+master.55cca7fd0
其他信息
无