Repository navigation
CMake: Prepare for UNITY_BUILD support - #1461
jschueller wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1461 +/- ##
==========================================
- Coverage 70.23% 70.23% -0.01%
==========================================
Files 6243 6243
Lines 501381 501381
Branches 23564 23564
==========================================
- Hits 352126 352123 -3
- Misses 148776 148778 +2
- Partials 479 480 +1
Continue to review full report in Codecov by Harness.
|
7cb55d2 to
97c4fdc
Compare
|
@jschueller Could you add a unity CMake build in CI? Best place would be the |
|
Ah, never mind, I didn't realize the feature hasn't been released yet. I guess you tested this already with a CMake build from your CMake branch? |
|
yes! |
lsame.f, xerbla.f and xerbla_array.f are compiled into both libblas and liblapack with different content. With unity builds many sources are batched into a single object, so linking fails with multiple definitions. Same with test drivers symbols.
|
fyi cmake fortran unity build support is available in cmake nightly builds if someone wants to try |
lsame.f, xerbla.f and xerbla_array.f are compiled into both libblas and liblapack with different content.
With unity builds many sources are batched into a single object, so linking fails with multiple definitions.
Also exclude single-file tests, and batch source generation too.
This branch should yield a nice speedup on low-cores machine like the github runners, need fortran unity build support (cmake >=4.6)