Skip to content

fix package and headerunit for gcc#6320

Merged
waruqi merged 1 commit intodevfrom
headerunit
Apr 14, 2025
Merged

fix package and headerunit for gcc#6320
waruqi merged 1 commit intodevfrom
headerunit

Conversation

@waruqi
Copy link
Member

@waruqi waruqi commented Apr 14, 2025

  • Before adding new features and new modules, please go to issues to submit the relevant feature description first.
  • Write good commit messages and use the same coding conventions as the rest of the project.
  • Please commit code to dev branch and we will merge into master branch in feature
  • Ensure your edited codes with four spaces instead of TAB.

  • 增加新特性和新模块之前,请先到issues提交相关特性说明,经过讨论评估确认后,再进行相应的代码提交,避免做无用工作。
  • 编写友好可读的提交信息,并使用与工程代码相同的代码规范,代码请用4个空格字符代替tab缩进。
  • 请提交代码到dev分支,如果通过,我们会在特定时间合并到master分支上。
  • 为了规范化提交日志的格式,commit消息,不要用中文,请用英文描述。

@waruqi waruqi added this to the v3.0.0 milestone Apr 14, 2025
local headerfile = headerunit.unique and headerunit.name or headerunit.path
_compile(target,
_make_headerunitflags(target, headerunit, headerunit_mapper, opt),
path.translate(path.filename(headerunit.name)), bmifile)
Copy link
Member Author

@waruqi waruqi Apr 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can not use path.filename here for gcc. if we use packages in modules. like spdlog package. #import <spdlog/spdlog.h>;

/usr/bin/gcc -c -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++20 -isystem /home/ruki/.xmake/packages/s/spdlog/v1.15.2/51f8d8b9d14d4d17af0b7c28620bf3c7/include -D_GLIBCXX_USE_CXX11_ABI=0 -DNDEBUG -fmodule-mapper=/tmp/.xmake999/250414/_F91056BC7F6C48108C5C73EE27ED1330 -fmodule-header=system -fmodule-only -xc++-header -x c++-header -o build/.gens/mod/linux/x86_64/release/rules/bmi/cache/headerunits/spdlog.h.gcm spdlog.h
cc1plus: fatal error: spdlog.h: No such file or directory
compilation terminated.

#6272

@waruqi waruqi requested a review from Arthapz April 14, 2025 02:17
@waruqi waruqi merged commit 3673268 into dev Apr 14, 2025
44 checks passed
@waruqi waruqi deleted the headerunit branch April 14, 2025 12:42
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.

1 participant