Skip to content

[REBASE & FF] Copy FltUsedLib to MsCorePkg#864

Merged
os-d merged 3 commits intomicrosoft:release/202511from
os-d:fltused
Apr 1, 2026
Merged

[REBASE & FF] Copy FltUsedLib to MsCorePkg#864
os-d merged 3 commits intomicrosoft:release/202511from
os-d:fltused

Conversation

@os-d
Copy link
Copy Markdown
Contributor

@os-d os-d commented Apr 1, 2026

Description

FltUsedLib is a library that has a single line, adding a reference to _fltused, which is needed by MSVC and clang when building floating point code.

FltUsedLib is only used in mu_plus, so in order to reduce deltas from edk2, it is moved to mu_plus. This commit then updates references in mu_plus to this new library.

A PR will be put up to mu_basecore to drop the library after this merges.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Build testing.

Integration Instructions

Platforms should update to FltUsedLib|MsCorePkg/Library/FltUsedLib/FltUsedLib.inf in their DSCs. This change is not a breaking change, but the removal in mu_basecore will be.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 1, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202511@0180dfe). Learn more about missing BASE report.

Files with missing lines Patch % Lines
MsCorePkg/Library/FltUsedLib/FltUsedLib.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             release/202511    #864   +/-   ##
================================================
  Coverage                  ?   8.29%           
================================================
  Files                     ?      73           
  Lines                     ?    8779           
  Branches                  ?     579           
================================================
  Hits                      ?     728           
  Misses                    ?    8038           
  Partials                  ?      13           
Flag Coverage Δ
MfciPkg 34.00% <ø> (?)
MsCorePkg 1.30% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread MsCorePkg/Library/FltUsedLib/FltUsedLib.c Outdated
os-d added 3 commits April 1, 2026 15:30
This migrates FltUsedLib from MdePkg to MsCorePkg, as it is
only used in mu_plus. It defines a global variable that MSVC
and clang expect when floating point is used.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
MfciPkg.dsc doesn't build any components that
use FltUsedLib. Drop the references.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
Consume the new FltUsedLib in MsCorePkg instead of
MdePkg.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
@os-d os-d enabled auto-merge (rebase) April 1, 2026 22:30
@os-d os-d merged commit 31f2b85 into microsoft:release/202511 Apr 1, 2026
29 checks passed
@os-d os-d deleted the fltused branch April 2, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants