Skip to content

Commit

Permalink
Fixed gradle env variable usage and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sp717 committed Jul 1, 2024
1 parent b2a2106 commit 138e5a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if (ext.isFips) {
}

// Check for user inputted git version ID.
if (System.properties["AWSLC_REF"]) {
ext.awsLcGitVersionId = System.properties["AWSLC_REF"]
if (System.env.AWSLC_GITVERSION) {
ext.awsLcGitVersionId = System.env.AWSLC_GITVERSION
}

ext.isLegacyBuild = Boolean.getBoolean('LEGACY_BUILD')
Expand Down Expand Up @@ -97,8 +97,8 @@ def getClangFormatVersion() {
def awslcSrcPath = "${projectDir}/aws-lc/"

// Check for user inputted AWS-LC source directory.
if (System.properties["AWSLC_SRC_DIR"]) {
awslcSrcPath = System.properties["AWSLC_SRC_DIR"]
if (System.env.AWSLC_SRC_DIR) {
awslcSrcPath = System.env.AWSLC_SRC_DIR
}

// Execute cmake3 command to see if it exists. Mainly to support AL2.
Expand Down

0 comments on commit 138e5a8

Please sign in to comment.