Skip to content

Adds define for gtest on old gcc releases.#1987

Merged
sbiscigl merged 1 commit intomainfrom
gtest-gcc4
Jul 6, 2022
Merged

Adds define for gtest on old gcc releases.#1987
sbiscigl merged 1 commit intomainfrom
gtest-gcc4

Conversation

@sbiscigl
Copy link
Copy Markdown
Collaborator

@sbiscigl sbiscigl commented Jul 6, 2022

Description of changes:

Right now with GCC < 5 compilation will fail because the embedded dependency on gtest does not support gcc < 5.0 this will use the gcc trait __has_trivial_copy when compiled with previous gcc versions.

workaround suggested is from this stack overflow

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sbiscigl sbiscigl marked this pull request as ready for review July 6, 2022 21:03
@sbiscigl sbiscigl merged commit f2dc54b into main Jul 6, 2022
@sbiscigl sbiscigl deleted the gtest-gcc4 branch July 6, 2022 23:29
amit-schreiber-firebolt pushed a commit to firebolt-analytics/aws-sdk-cpp that referenced this pull request May 8, 2025
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