Skip to content

(C++ module support) improve jobgraph support#6373

Merged
waruqi merged 12 commits intoxmake-io:devfrom
Arthapz:improve-jobgraph-support
May 11, 2025
Merged

(C++ module support) improve jobgraph support#6373
waruqi merged 12 commits intoxmake-io:devfrom
Arthapz:improve-jobgraph-support

Conversation

@Arthapz
Copy link
Member

@Arthapz Arthapz commented Apr 27, 2025

  • disable build.fence and enable full parallelization
  • support clang two phase compilation and add policy to toggle it build.c++.modules.two_phases
  • improve module build artifact reutilisation and introduce build.c++.modules.reuse.nocheck to force reutilisation without checking flags
  • modules from other targets now have includedirs flags from their original target when not reused (should partially fixes clang-scan-deps commandline misses target flags on command line  #6028 (comment)) (should be the same behavior as modules from packages)
  • fix --sdk= when using llvm toolchain on windows with msstl std module

part 5 (and last) of #6336

should fixes #6399 (comment)
fixes #6383
fixes #5765
fixes #3003
fixes #4087
fixes #6407
partially fixes (no support for std module) #5765

@Arthapz Arthapz force-pushed the improve-jobgraph-support branch 5 times, most recently from 2d5b6c7 to e3de38e Compare April 27, 2025 17:09
@Arthapz Arthapz force-pushed the improve-jobgraph-support branch 2 times, most recently from a2e3d84 to 77bb2fd Compare April 29, 2025 14:46
@waruqi
Copy link
Member

waruqi commented Apr 29, 2025

What are the main improvements made in this patch?

@Arthapz
Copy link
Member Author

Arthapz commented Apr 29, 2025

What are the main improvements made in this patch?

  • disable build.fence and enable full parallelization
  • support clang two phase compilation and add policy to toggle it build.c++.modules.two_phases
  • improve module build artifact reutilisation and introduce build.c++.modules.reuse.nocheck to force reutilisation without checking flags
  • modules from other targets now have includedirs flags from their original target when not reused (should partially fixes clang-scan-deps commandline misses target flags on command line  #6028 (comment)) (should be the same behavior as modules from packages)
  • fix --sdk= when using llvm toolchain on windows with msstl std module

@Arthapz Arthapz force-pushed the improve-jobgraph-support branch 4 times, most recently from 652e310 to 8d8cdbe Compare April 30, 2025 14:29
@Arthapz Arthapz force-pushed the improve-jobgraph-support branch 2 times, most recently from 01864d3 to 31dceaa Compare May 1, 2025 00:22
@waruqi waruqi closed this May 1, 2025
@Arthapz Arthapz force-pushed the improve-jobgraph-support branch 6 times, most recently from f4a3b05 to 0beb8ac Compare May 9, 2025 13:49
@Arthapz Arthapz force-pushed the improve-jobgraph-support branch from 672ede4 to b24998d Compare May 9, 2025 13:56
@Arthapz Arthapz force-pushed the improve-jobgraph-support branch from e29641a to fdc7b4e Compare May 9, 2025 16:27
@Arthapz Arthapz force-pushed the improve-jobgraph-support branch from b7dc824 to fca3c75 Compare May 10, 2025 20:19
@waruqi
Copy link
Member

waruqi commented May 11, 2025

Does it ready now?

@Issues-translate-bot
Copy link

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


Does it ready now?

@Arthapz
Copy link
Member Author

Arthapz commented May 11, 2025

i think so

@waruqi
Copy link
Member

waruqi commented May 11, 2025

ok, I will review it in these days.

@waruqi waruqi added this to the v3.0.0 milestone May 11, 2025
@waruqi
Copy link
Member

waruqi commented May 11, 2025

Thanks! 👍

@waruqi waruqi merged commit c357c9b into xmake-io:dev May 11, 2025
22 checks passed
@Issues-translate-bot
Copy link

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


Thanks! 👍

@Arthapz Arthapz deleted the improve-jobgraph-support branch September 18, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment