cpubench: don't need to specify --sysroot on 8A (draft version)

This commit is contained in:
2025-02-26 19:39:26 +08:00
parent 00d57ff13b
commit 621ae0e7fb
3 changed files with 5 additions and 14 deletions

View File

@@ -74,25 +74,24 @@ perf_timeout = 60 # Set the collection timeout.
#=====================================================================
[default]
clang_dir = @@LLVM_INSTALL@@
SYSROOT = @@SYSROOT@@
LD_LIBRARY_PATH = ${clang_dir}/lib
#==========================Compiler for C=============================
CC = ${clang_dir}/bin/clang
CC_VERSION = -v
OPTIMIZE = @@OPTIMIZE@@
CFLAGS = ${OPTIMIZE} --sysroot=${SYSROOT} # Example: -g
CFLAGS = ${OPTIMIZE}
#==========================Compiler for C++===========================
CXX = ${clang_dir}/bin/clang++
CXX_VERSION = -v
CXXFLAGS = ${OPTIMIZE} --sysroot=${SYSROOT} # Example: -fno-strict-aliasing -fgnu89-inline
CXXFLAGS = ${OPTIMIZE}
#=============================LD Flags================================
CLD = # Example: ${CC}
CXXLD = # Example: ${CXX}
FLD = # Example: ${FC}
LD_FLAGS = --sysroot=${SYSROOT} -L ${clang_dir}/lib -Wl,-rpath,${clang_dir}/lib -Wl,-rpath,${SYSROOT}/lib -Wl,-rpath-link,${clang_dir}/lib -Wl,-rpath-link,${SYSROOT}/lib -Wl,-dynamic-linker,${SYSROOT}/lib/ld-linux.so.2
LD_FLAGS =
#=============================LIBS Flags==============================
LIBS = # Example: -lpthread
@@ -102,7 +101,7 @@ RANLIB = ranlib
#=========================Compiler for fortran========================
FC = ${clang_dir}/bin/flang
FC_VERSION = -v
FFLAGS = ${OPTIMIZE} --sysroot=${SYSROOT}
FFLAGS = ${OPTIMIZE}
#=============================JAVA Option=============================
java_options = # Example: -XX:ParallelGCThreads=1