specify the build mode used by cmake. defaults to Debug mode if -g is used alone, with no mode parameter
if -g is not specifies, Release mode is used.
...
...
@@ -176,8 +165,7 @@ function main() {
do
case"$1"in
--arch-native)
CMAKE_C_FLAGS+=("-march=native")
CMAKE_CXX_FLAGS+=("-march=native")
echo_fatal "Error: specify --arch-native on the command line to cmake directly: ./build_oai --cmake-opt \"-DCMAKE_C_FLAGS=-march=native -DCMAKE_CXX_FLAGS=-march=native\""
shift;;
-c|--clean)
CLEAN=1
...
...
@@ -203,10 +191,6 @@ function main() {
INSTALL_OPTIONAL=1
echo_info "Will install optional packages"
shift;;
-i|--install-system-files)
INSTALL_SYSTEM_FILES=1
echo_info "Will copy OpenAirInterface files in Linux directories"
shift;;
-g|--run-with-gdb)
case"$2"in
"Release")
...
...
@@ -258,7 +242,6 @@ function main() {
shift;;
--nrUE)
nrUE=1
rfsimNas=1
echo_info "Will compile NR UE"
shift;;
--mu)
...
...
@@ -318,11 +301,8 @@ function main() {
-V|--vcd)
echo_info "Setting gtk-wave output"
CMAKE_CMD="$CMAKE_CMD -DENABLE_VCD_FIFO=True"
EXE_ARGUMENTS="$EXE_ARGUMENTS -V"
shift;;
-x|--xforms)
XFORMS=1
EXE_ARGUMENTS="$EXE_ARGUMENTS -d"
echo_info "Will generate the software oscilloscope features"
shift;;
--verbose-ci)
...
...
@@ -363,7 +343,6 @@ function main() {
echo_info "Downloading UHD images in the indicated location"