From a859eb987c3cf91ef011dceaaf099acfa04f5a30 Mon Sep 17 00:00:00 2001 From: JKLiang9714 <1023587725@qq.com> Date: Tue, 30 Nov 2021 15:42:58 +0800 Subject: [PATCH] [Huawei]secure compile option Offering:hpc --- contrib/platform/mellanox/optimized | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contrib/platform/mellanox/optimized b/contrib/platform/mellanox/optimized index 5768c6d1ccb..1d3a4fe7c41 100644 --- a/contrib/platform/mellanox/optimized +++ b/contrib/platform/mellanox/optimized @@ -40,10 +40,10 @@ if [ "$mellanox_debug" == "yes" ]; then enable_debug=yes enable_memchecker=yes with_valgrind=yes - CXXFLAGS="-O0 -g" - CCASFLAGS="-O0 -g" - FCFLAGS="-O0 -g" - CFLAGS="-O0 -g" + CXXFLAGS="-O0 -g $CXXFLAGS" + CCASFLAGS="-O0 -g $CCASFLAGS" + FCFLAGS="-O0 -g $FCFLAGS" + CFLAGS="-O0 -g $CFLAGS" else enable_debug=no enable_mem_debug=no @@ -53,8 +53,8 @@ else enable_heterogeneous=no enable_ft_thread=no with_mpi_param_check=yes - CXXFLAGS="-O3 -g" - CCASFLAGS="-O3 -g" - FCFLAGS="-O3 -g" - CFLAGS="-O3 -g" + CXXFLAGS="-O3 -g $CXXFLAGS" + CCASFLAGS="-O3 -g $CCASFLAGS" + FCFLAGS="-O3 -g $FCFLAGS" + CFLAGS="-O3 -g $CFLAGS" fi