Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ usage()
echo "[-opt] Build optimized library only (default)"
echo "[-edge] Build edge of x64. Turns off opt and dbg"
echo "[-hip] Enable hip bindings"
echo "[-disable-werror] Disable compilation with warnings as error"
echo "[-enable-werror] Enable compilation with warnings as error"
echo "[-nocmake] Skip CMake call"
echo "[-noert] Do not treat missing ERT FW as a build error"
echo "[-noinit] Do not initialize Git submodules"
Expand Down Expand Up @@ -111,7 +111,7 @@ noert=0
static_boost=""
ertbsp=""
ertfw=""
werror=1
werror=0
alveo_build=0
npu_build=0
base_build=0
Expand Down Expand Up @@ -194,8 +194,8 @@ while [ $# -gt 0 ]; do
noctest=1
shift
;;
-disable-werror|--disable-werror)
werror=0
-enable-werror|--enable-werror)
werror=1
shift
;;
-j)
Expand Down Expand Up @@ -274,9 +274,9 @@ fi
debug_dir=${DEBUG_DIR:-Debug}
release_dir=${REL_DIR:-Release}

# By default compile with warnings as errors.
# By default compile without warnings as errors.
# Update every time CMake is generating makefiles.
# Disable with '-disable-werror' option.
# Enable with '-enable-werror' option.
cmake_flags+=" -DXRT_ENABLE_WERROR=$werror"

# set CMAKE_INSTALL_PREFIX
Expand Down