Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmake不支持使用sdcc的sdasstm8工具编译.s文件 #220

Closed
lanjackg2003 opened this issue Aug 12, 2023 · 4 comments
Closed

xmake不支持使用sdcc的sdasstm8工具编译.s文件 #220

lanjackg2003 opened this issue Aug 12, 2023 · 4 comments

Comments

@lanjackg2003
Copy link

描述问题

使用
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

其他信息

@Issues-translate-bot
Copy link

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

@lanjackg2003
Copy link
Author

支持stm8汇编器的PR请求

手动切换汇编编译器为使用stm8汇编器
xmake f -p cross -a stm8 --toolchain=sdcc --sdk="{路径}" --as=sdasstm8
否则默认使用sdcc

编译验证
image

@waruqi

@waruqi
Copy link
Member

waruqi commented Aug 13, 2023

merge 了

@waruqi waruqi closed this as completed Aug 13, 2023
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants