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

Cherrypick my linux/clang compile fixes from dev to point release #17771

Conversation

nick-l-o3de
Copy link
Contributor

This is a combination of commit 4a613a0 and commit 6e77dfa from development to this branch, fixing compile warnings/errors under linux in certain conditions (ie, release, profile, etc)

See #17098 for the one cherrypick
See https://github.com/o3de/o3de/pull/16645/files#diff-1d4eec4a38cbed22d33a569f28fa14d554ae1522f7a129cb3f6bba681a140465 for the other.

Note that the latter was part of the Script Only mode, but only the compile error fix was cherrypicked in here, not the feature itself.

Testing: Compile and run editor. Changes are compile errors and it simply did not compile before.

specifically, cherry-picks commit 6e77dfa changes to EncryptionCommon.cpp

Fix for compile error on linux clang.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
Avoids a CMAKE error in certain conditions.

See o3de#17098

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
@nick-l-o3de nick-l-o3de requested a review from a team as a code owner April 18, 2024 21:07
are only built or aliased when tools are present for the platform.

Signed-off-by: Nicholas Lawson <70027408+nick-l-o3de@users.noreply.github.com>
@nick-l-o3de nick-l-o3de requested review from a team as code owners April 19, 2024 17:04
@nick-l-o3de
Copy link
Contributor Author

I updated it to make it instead so that everything that depends on tools only tries to create their alias or target if tools are built for the platform.

I tested it by compiling (on linux) with the PAL_Linux.cmake file modified to make it so that building tools was set to FALSE. I also tried combinations of FALSE/TRUE for building tools and building tests.

ly_create_alias(NAME LyShineExamples.Tools NAMESPACE Gem TARGETS Gem::LyShineExamples Gem::LmbrCentral.Editor)
if (PAL_TRAIT_BUILD_HOST_TOOLS)
# only if building tools for this platform, alias to tool targets
ly_create_alias(NAME LyShineExamples.Builders NAMESPACE Gem TARGETS Gem::LyShineExamples Gem::UiBasics.Builders Gem::LmbrCentral.Editor)
Copy link
Contributor

Choose a reason for hiding this comment

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

With these updates, the Builders alias can be outside of the PAL_TRAIT_BUILD_HOST_TOOLS check right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what you mean by this. This particular change just reverts it to what it was before I made any changes. The problem with these was that previously before I made any changes, they only existed when PAL_TRAIT_BUILD_HOST_TOOLS was TRUE, but other parts of hte engine and other gems depended on them outside PAL_TRAIT_BUILD_HOST_TOOLS blocks.

I went and instead updated all the other stuff that depended on them to also depend on the PAL_TRAIT_BUILD_HOST_TOOLS being true, resolving the problem. All the other stuff that depended on these aliases and targets was in fact test or tool (or both) stuff anyway, or a typo.

@nick-l-o3de nick-l-o3de merged commit 146023b into o3de:point-release/23103 Apr 22, 2024
3 checks passed
@nick-l-o3de nick-l-o3de deleted the nick-l-cherrypick-compile-fixes branch April 22, 2024 20:19
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.

None yet

4 participants