Skip to content

XMake 3.0 modules support (jobgraph, deprecation and improvements)#6336

Closed
Arthapz wants to merge 3 commits intoxmake-io:devfrom
Arthapz:xmake3-0-modules
Closed

XMake 3.0 modules support (jobgraph, deprecation and improvements)#6336
Arthapz wants to merge 3 commits intoxmake-io:devfrom
Arthapz:xmake3-0-modules

Conversation

@Arthapz
Copy link
Member

@Arthapz Arthapz commented Apr 20, 2025

  • improve general stability
  • cleanup code
  • disable build.fence and enable full parallelization
  • support clang two phase compilation and add policy to toggle it build.c++.modules.two_phases
  • deprecate policies (for naming consistency):
    1. build.c++.modules.tryreuse, introduce build.c++.modules.reuse instead
    2. build.c++.modules.tryreuse.discriminate_on_defines, introduce build.c++.modules.reuse.strict instead
    3. build.c++.gcc/clang/msvc.fallbackscanner, introduce build.c++.modules.gcc/clang/msvc.fallbackscanner instead
    4. build.c++.gcc.modules.cxx11abi, introduce build.c++.modules.gcc.cxx11abi instead
  • improve module build artifact reutilisation and introduce build.c++.modules.reuse.nocheck to force reutilisation without checking flags
  • add new tests
  • modules from other targets now use their original target fileconfig (should partially fixes clang-scan-deps commandline misses target flags on command line  #6028 (comment)) (same behavior as modules from packages)
  • fix --sdk= when using llvm toolchain on windows with msstl std module

@Arthapz Arthapz changed the title Xmake3 0 modules XMake 3.0 modules support Apr 20, 2025
@Arthapz Arthapz changed the title XMake 3.0 modules support XMake 3.0 modules support (jobgraph, deprecation and improvements) Apr 20, 2025
@Arthapz Arthapz force-pushed the xmake3-0-modules branch 2 times, most recently from fe1e897 to ebc643e Compare April 20, 2025 14:00
@waruqi
Copy link
Member

waruqi commented Apr 20, 2025

I don't have much time to review such a large patch, nor can I test them in detail. This may introduce a lot of uncertainty and stability.

so I suggest splitting it into multiple patches as much as possible.

@Arthapz
Copy link
Member Author

Arthapz commented Apr 27, 2025

@waruqi i have reduced it to
image

now it's hard to split it as all the work is dependent, is it okay ?

@waruqi
Copy link
Member

waruqi commented Apr 27, 2025

@waruqi i have reduced it to image

now it's hard to split it as all the work is dependent, is it okay ?

ok, but I might need a few days to review it.

@Arthapz
Copy link
Member Author

Arthapz commented Apr 27, 2025

@waruqi i have reduced it to image
now it's hard to split it as all the work is dependent, is it okay ?

ok, but I might need a few days to review it.

no problem, take your time

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.

clang-scan-deps commandline misses target flags on command line

2 participants