Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions eng/native/build-commons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ check_prereqs()

build_native()
{
eval "$__RepoRootDir/eng/native/version/copy_version_files.sh"
if [[ ! -e "$__RepoRootDir/artifacts/obj/_version.c" ]]; then
eval "$__RepoRootDir/eng/native/version/copy_version_files.sh"
fi
Copy link
Member Author

Choose a reason for hiding this comment

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

@jkoritzinsky, in official build, we always build from clean repo so I assumed this won't be a problem.

Copy link
Member

Choose a reason for hiding this comment

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

Yes we always build from a clean clone for an official build.


targetOS="$1"
platformArch="$2"
Expand Down Expand Up @@ -257,7 +259,7 @@ while :; do
break
fi

lowerI="$(echo "$1" | tr "[:upper:]" "[:lower:]")"
lowerI="$(echo "${1/--/-}" | tr "[:upper:]" "[:lower:]")"
case "$lowerI" in
-\?|-h|--help)
usage
Expand Down