diff options
author | Steven Koo <steven.koo@ni.com> | 2020-08-04 17:28:28 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-08-12 07:13:04 -0500 |
commit | a518c5c771aa9b2e5a537d44b949b84e2d05fcd3 (patch) | |
tree | cb190a1a073c5243d0e731b1e5ff2e47b7eb5d86 /host/lib/usrp | |
parent | 4f387c8ff0571deedc86dc459e94e555b9768282 (diff) | |
download | uhd-a518c5c771aa9b2e5a537d44b949b84e2d05fcd3.tar.gz uhd-a518c5c771aa9b2e5a537d44b949b84e2d05fcd3.tar.bz2 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.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/dboard/twinrx/twinrx_gain_tables.hpp | 9 |
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 */ |