Skip to content

Commit

Permalink
Add ElfUtils and BinUtils Download URL Overrides (#358)
Browse files Browse the repository at this point in the history
* Add CMake CACHE Variable ElfUtils_DOWNLOAD_URL

Used to override the default URL to download ElfUtils from.
Useful for internal builds

Also, include a mirror to fallback to if the override URL fails.

* Update timemory submodule

Updating to include the BINUTIL_DOWNLOAD_URL override cmake
variable.

---------

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
  • Loading branch information
dgaliffiAMD authored and samjwu committed Jul 29, 2024
1 parent c1d1fa6 commit 79b8062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmake/ElfUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ set(_eu_build_byproducts "${_eu_root}/lib/libdw${CMAKE_STATIC_LIBRARY_SUFFIX}"
externalproject_add(
omnitrace-elfutils-build
PREFIX ${PROJECT_BINARY_DIR}/external/elfutils
URL https://sourceware.org/elfutils/ftp/${ElfUtils_DOWNLOAD_VERSION}/elfutils-${ElfUtils_DOWNLOAD_VERSION}.tar.bz2
URL ${ElfUtils_DOWNLOAD_URL}
"https://sourceware.org/elfutils/ftp/${ElfUtils_DOWNLOAD_VERSION}/elfutils-${ElfUtils_DOWNLOAD_VERSION}.tar.bz2"
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND
${CMAKE_COMMAND} -E env CC=${ElfUtils_C_COMPILER}
Expand Down
2 changes: 1 addition & 1 deletion external/timemory

0 comments on commit 79b8062

Please sign in to comment.