Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrections to CMake changes to enable library sub-builds #571

Merged
merged 5 commits into from
Nov 20, 2024

Conversation

dcandler
Copy link
Collaborator

Two scripts arguments were renamed during review, but the cmake steps calling the script weren't updated.

Additionally the our downstream test targets such as check-package-llvm-toolchain target require the path to an external llvm-lit in order to run the tests.

Two scripts arguments were renamed during review, but the cmake
steps calling the script weren't updated.

Additionally the our downstream test targets such as
check-package-llvm-toolchain target require the path to an external
llvm-lit in order to run the tests.
Copy link

@DaftanoPro DaftanoPro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look goods to me

The variables to enable exceptions and RTTI are now cached and the names
are capitalized, but CMake arguments needed updating to reflect this.
@dcandler dcandler changed the title Update script arguments and set external lit Corrections to CMake changes to enable library sub-builds Nov 18, 2024
@dcandler
Copy link
Collaborator Author

Found one more issue: the parameter to enable exceptions and RTTI was not getting passed down correctly so the exceptions sample failed.

The PREBUILT_TARGET_LIBRARIES option is meant to disable the building of
all libraries, on the assumption that pre-built libraries will be
copied from another location. The functionality was accidentally removed,
but has now been returned.
CMake automatically expands a string containing semi-colons to a
list, but ExternalProject argument must also be a semi-colon
separated list. To get around this, convert the string to a comma
separated list, since the LIST_SEPARATOR option will reinterpret
this as a semi-colon list.
Previously, FVP testing was skipped if a FVP install was not
available. However, this now throws a configuration error if testing
relies on FVPs. But if you specifically want to test with FVPs, it is
desirable to have the configuration error warn you with an if the
install cannot be found.

To resolve this, an additional option has been added to explicitly
enable FVP testing, defaulting to OFF. This will override any
settings from the variant JSON, so that the default case remains
skipping FVP testing.
@dcandler dcandler merged commit dca45e7 into ARM-software:main Nov 20, 2024
1 check passed
@dcandler dcandler deleted the test_fixes branch November 20, 2024 14:51
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.

3 participants