Skip to content

fix upper in xmake.lua#6433

Merged
waruqi merged 2 commits intoxmake-io:devfrom
binLep:dev
May 13, 2025
Merged

fix upper in xmake.lua#6433
waruqi merged 2 commits intoxmake-io:devfrom
binLep:dev

Conversation

@binLep
Copy link
Contributor

@binLep binLep commented May 13, 2025

小写转大写这部分用的 upper 函数在 windows 上执行的时候报错了,加个 string 的命名标识就OK

报错输出

build cache stats:
cache directory: build\.build_cache
cache hit rate: 0%
cache hit: 0
cache hit total time: 0.000s
cache miss: 0
cache miss total time: 0.000s
new cached files: 0
remote cache hit: 0
remote new cached files: 0
preprocess failed: 0
compile fallback count: 0
compile total time: 0.000s

create ok!
compile_commands.json updated!
error: @programdir\core\main.lua:329: @programdir\rules\platform\windows\subsystem\xmake.lua:44: attempt to call a nil value (global 'upper')
stack traceback:
    [@programdir\rules\platform\windows\subsystem\xmake.lua:44]: in function 'on_config'
    [...dir\core\sandbox\modules\import\core\project\project.lua:145]: in function '_config_target'
    [...dir\core\sandbox\modules\import\core\project\project.lua:180]: in function '_config_targets'
    [...dir\core\sandbox\modules\import\core\project\project.lua:227]: in function 'load_targets'
    [@programdir\actions\run\main.lua:203]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:246]:
    [@programdir\core\base\task.lua:504]: in function 'run'
    [@programdir\core\main.lua:327]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:406]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:1075: in function 'base/os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
warning: If cmake build failure, set package config cmake = false fallback to b2 for the build

Loading
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

Successfully merging this pull request may close these issues.

2 participants