From a518c5c771aa9b2e5a537d44b949b84e2d05fcd3 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Tue, 4 Aug 2020 17:28:28 -0500 Subject: uhd: Disable optimizations for Mac for build speed twinrx_gain_tables takes long time to build with optimizations on macOS / Clang. Turn them off for this platform. --- host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'host/lib/usrp/dboard') diff --git a/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp b/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp index f02241745..49a7260bd 100644 --- a/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp +++ b/host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp @@ -13,6 +13,11 @@ #include #include +// Turn off optimization on macOS/Clang. With optimizations +// on, twinrx_gain_tables hours to build +#if defined(UHD_PLATFORM_MACOS) +# pragma clang optimize off +#endif namespace uhd { namespace usrp { namespace dboard { namespace twinrx { class twinrx_gain_config_t @@ -79,4 +84,8 @@ private: }}}} // namespace uhd::usrp::dboard::twinrx +#if defined(UHD_PLATFORM_MACOS) +# pragma clang optimize on +#endif + #endif /* INCLUDED_DBOARD_TWINRX_GAIN_TABLES_HPP */ -- cgit v1.2.3