8ad58c5d28
* Build omnitrace-rt library
- Explicitly build dyninstAPI_RT as omnitrace-rt so that the SONAME in the ELF is omnitrace-rt instead of dyninstAPI_RT
- Create symbolic link lib/omnitrace/libdyninstAPI_RT.so which points to lib/libomnitrace-rt.so
- Simplify build tree location of libomnitrace-rt.so since it is ../lib from the bin directory even in the build tree
- Update dyninst submodule with minor tweaks to dyninstAPI_RT/CMakeLists.txt
* Update source/lib/omnitrace-rt/cmake/platform.cmake
* Use ftpmirror.gnu.org instead of ftp.gnu.org
- in timemory and dyninst submodules
- minor .clang-tidy tweak
[ROCm/rocprofiler-systems commit: 0cf017251e]
75 řádky
1.8 KiB
Bash
Spustitelný soubor
75 řádky
1.8 KiB
Bash
Spustitelný soubor
#!/bin/bash
|
|
|
|
P=$1
|
|
|
|
# i386/Linux, x86-64/Linux, ppc/Linux, ppc64/Linux
|
|
if [ ${P/linux/} != ${P} ]; then
|
|
if [ ${P/i686/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-linux2.4
|
|
fi
|
|
if [ ${P/i586/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-linux2.4
|
|
fi
|
|
if [ ${P/i486/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-linux2.4
|
|
fi
|
|
if [ ${P/i386/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-linux2.4
|
|
fi
|
|
if [ ${P/x86_64/} != ${P} ]; then
|
|
PLATFORM=x86_64-unknown-linux2.4
|
|
fi
|
|
if [ ${P/ppc64/} != ${P} ]; then
|
|
PLATFORM=ppc64_linux
|
|
fi
|
|
if [ ${P/powerpc64/} != ${P} ]; then
|
|
PLATFORM=ppc64_linux
|
|
fi
|
|
if [ ${P/powerpc-/} != ${P} ]; then
|
|
PLATFORM=ppc32_linux
|
|
fi
|
|
if [ ${P/ppc-/} != ${P} ]; then
|
|
PLATFORM=ppc32_linux
|
|
fi
|
|
if [ ${P/aarch64-/} != ${P} ]; then
|
|
PLATFORM=aarch64-unknown-linux
|
|
fi
|
|
# Freebsd
|
|
elif [ ${P/freebsd/} != ${P} ]; then
|
|
if [ ${P/i686/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-freebsd7.2
|
|
fi
|
|
if [ ${P/i586/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-freebsd7.2
|
|
fi
|
|
if [ ${P/i486/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-freebsd7.2
|
|
fi
|
|
if [ ${P/i386/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-freebsd7.2
|
|
fi
|
|
if [ ${P/x86_64/} != ${P} ]; then
|
|
PLATFORM=amd64-unknown-freebsd7.2
|
|
fi
|
|
|
|
# VxWorks
|
|
elif [ ${P/vxworks/} != ${P} ]; then
|
|
if [ ${P/i686/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-vxworks6.x
|
|
fi
|
|
if [ ${P/i586/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-vxworks6.x
|
|
fi
|
|
if [ ${P/i486/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-vxworks6.x
|
|
fi
|
|
if [ ${P/i386/} != ${P} ]; then
|
|
PLATFORM=i386-unknown-vxworks6.x
|
|
fi
|
|
if [ ${P/powerpc-/} != ${P} ]; then
|
|
PLATFORM=ppc32-unknown-vxworks6.x
|
|
fi
|
|
fi
|
|
|
|
echo $PLATFORM
|