diff options
| author | Michael D Kinney <michael.d.kinney@intel.com> | 2025-09-19 23:45:20 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-09-29 02:38:21 +0300 |
| commit | 9731114a00e8360d5b116630c133590108640039 (patch) | |
| tree | 6590e3ac0d6d5728fdcc0fb1eb0fcd101c62aa96 /BaseTools/Source/Python/CommonDataClass/Exceptions.py | |
| parent | f832329addcb199bb4bee6cb6813dca1ebc3802d (diff) | |
| download | edk2-9731114a00e8360d5b116630c133590108640039.tar.xz | |
UnitTestFrameworkPkg: Add CLANGDWARF and CLANGPDB support
Update host-based unit test [BuildOptions] to support
CLANGDWARF and CLANGPDB.
* Use CLANG specific code coverage options
* Map CLANG trap function to abort() to resolve link issues
when building Google Test based unit tests. The default
mapping from tools_def.txt is to an unresolved function
to generate a build failure. Mapping to abort() overrides
the default mapping. If a unit test introduces undefined
behavior in a code path that is executed, then abort() is
called and the unit test application exits with an error
and fails the unit test.
* Update GCC to pass --coverage in link command so the
linker automatically includes -lgcov. The explicit
linking of -lgcov is removed.
* Add /EHs to all MSFT components instead of only components
of type HOST_APPLICATION.
* Add CXX_FLAGS for all tool chain families. Use c++ 20 for
MSFT and GCC and c++ 17 for clang. Clang generates errors
compiling Google Test with c++ 20.
* Add -z noexecstack to all GCC builds to reduce warnings.
* Add UNIT_TESTING_CODE_COVERAGE_ENABLE that is enabled by
default. Can be used to temporarily disable code coverage
when debugging interactions between unit testing features.
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass/Exceptions.py')
0 files changed, 0 insertions, 0 deletions
