aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2020-08-04 17:28:28 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-08-12 07:13:04 -0500
commita518c5c771aa9b2e5a537d44b949b84e2d05fcd3 (patch)
treecb190a1a073c5243d0e731b1e5ff2e47b7eb5d86
parentfpga: lib: Change max FFT size to 1024 (diff)
downloaduhd-a518c5c771aa9b2e5a537d44b949b84e2d05fcd3.tar.xz
uhd-a518c5c771aa9b2e5a537d44b949b84e2d05fcd3.zip
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.
-rw-r--r--host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp9
1 files changed, 9 insertions, 0 deletions
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 <uhd/types/ranges.hpp>
#include <stdint.h>
+// 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 */