Commit 0a40c69b authored by Aleksandr Khromykh's avatar Aleksandr Khromykh Committed by Christopher Friedt
Browse files

bsim: test: fix missing of warnings in bsim tests build system



bsim test build system hides compile warnings.
This commit adds extra cc flags to prevent this.

Signed-off-by: default avatarAleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
parent 0343118a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ function compile(){
  local conf_file="${conf_file:-prj.conf}"
  local cmake_args="${cmake_args:-"-DCONFIG_COVERAGE=y"}"
  local ninja_args="${ninja_args:-""}"
  local cc_flags="${cc_flags:-"-Werror"}"

  local exe_name="${exe_name:-bs_${BOARD}_${app}_${conf_file}}"
  local exe_name=${exe_name//\//_}
@@ -39,7 +40,8 @@ function compile(){
      [ -d "${this_dir}" ] && rm ${this_dir} -rf
      mkdir -p ${this_dir} && cd ${this_dir}
      cmake -GNinja -DBOARD_ROOT=${BOARD_ROOT} -DBOARD=${BOARD} \
            -DCONF_FILE=${conf_file} ${cmake_args} ${app_root}/${app} \
        -DCONF_FILE=${conf_file} ${cmake_args} \
        -DCMAKE_C_FLAGS="${cc_flags}" ${app_root}/${app} \
        &> cmake.out || { cat cmake.out && return 0; }
  else
      cd ${this_dir}