Skip to content

Add a script for AL2 build in release mode#3507

Merged
Alan4506 merged 2 commits intomainfrom
perfTestReleaseMode
Aug 5, 2025
Merged

Add a script for AL2 build in release mode#3507
Alan4506 merged 2 commits intomainfrom
perfTestReleaseMode

Conversation

@Alan4506
Copy link
Contributor

@Alan4506 Alan4506 commented Aug 4, 2025

Description of changes:

This PR adds a script to run a build in release mode on Amazon Linux 2.

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.

@Alan4506 Alan4506 changed the title add a script for AL2 build in release mode Add a script for AL2 build in release mode Aug 4, 2025
mkdir "${PREFIX_DIR}/al2-build"
mkdir "${PREFIX_DIR}/al2-install"
cd "${PREFIX_DIR}/al2-build"
cmake -GNinja ../aws-sdk-cpp -DCMAKE_BUILD_TYPE=Release -DMINIMIZE_SIZE=ON -DCMAKE_INSTALL_PREFIX="${PREFIX_DIR}/al2-install" -DBUILD_PERFORMANCE_TESTS=ON
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont think we should be adding a entire file for one arg change. cant we just use the old script but add a argument for build type, and have it default to debug if not provided?

@Alan4506 Alan4506 force-pushed the perfTestReleaseMode branch from 51a2da5 to 2cf9ce2 Compare August 5, 2025 14:34
@Alan4506 Alan4506 merged commit 7405193 into main Aug 5, 2025
6 checks passed
@Alan4506 Alan4506 deleted the perfTestReleaseMode branch August 7, 2025 15:50
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.

2 participants