mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	No Armadillo bound checking if compiled in Release mode
This commit is contained in:
		| @@ -69,12 +69,13 @@ endif() | ||||
| target_link_libraries(acquisition_gr_blocks | ||||
|     PUBLIC | ||||
|         algorithms_libs | ||||
|         acquisition_libs | ||||
|         channel_libs | ||||
|         core_system_parameters | ||||
|         Armadillo::armadillo | ||||
|         Gnuradio::runtime | ||||
|         Gnuradio::fft | ||||
|         Volk::volk | ||||
|         channel_libs | ||||
|         acquisition_libs | ||||
|         core_system_parameters | ||||
|     PRIVATE | ||||
|         Gflags::gflags | ||||
|         Glog::glog | ||||
| @@ -90,6 +91,12 @@ target_include_directories(acquisition_gr_blocks | ||||
|         ${CMAKE_SOURCE_DIR}/src/core/receiver | ||||
| ) | ||||
|  | ||||
| if(CMAKE_BUILD_TYPE MATCHES Rel) | ||||
|     target_compile_definitions(acquisition_gr_blocks | ||||
|         PUBLIC -DARMA_NO_BOUND_CHECKING=1 | ||||
|     ) | ||||
| endif() | ||||
|  | ||||
| if(OPENCL_FOUND) | ||||
|     target_link_libraries(acquisition_gr_blocks PUBLIC OpenCL::OpenCL) | ||||
|     target_include_directories(acquisition_gr_blocks | ||||
|   | ||||
| @@ -52,6 +52,10 @@ | ||||
| #ifndef GNSS_SDR_PCPS_ACQUISITION_H_ | ||||
| #define GNSS_SDR_PCPS_ACQUISITION_H_ | ||||
|  | ||||
| #if ARMA_NO_BOUND_CHECKING | ||||
| #define ARMA_NO_DEBUG 1 | ||||
| #endif | ||||
|  | ||||
| #include "acq_conf.h" | ||||
| #include "channel_fsm.h" | ||||
| #include <armadillo> | ||||
|   | ||||
| @@ -49,6 +49,10 @@ | ||||
| #ifndef GNSS_SDR_PCPS_ACQUISITION_FINE_DOPPLER_CC_H_ | ||||
| #define GNSS_SDR_PCPS_ACQUISITION_FINE_DOPPLER_CC_H_ | ||||
|  | ||||
| #if ARMA_NO_BOUND_CHECKING | ||||
| #define ARMA_NO_DEBUG 1 | ||||
| #endif | ||||
|  | ||||
| #include "acq_conf.h" | ||||
| #include "channel_fsm.h" | ||||
| #include "gnss_synchro.h" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez