ARM-software / tarmac-trace-utilities

Tools for analyzing and browsing Tarmac instruction traces.
Apache License 2.0
67 stars 22 forks source link

Fix building with libintl on macOS. #16

Closed statham-arm closed 9 months ago

statham-arm commented 9 months ago

CI pointed this out after I pushed Friday's patch series: I had used the cmake FindIntl module to test whether libintl was available, but having found that it was, I'd assumed that it wouldn't require any actual change to the build commands.

On Linux, where the header file lives in /usr/include and the library functionality is integrated into libc, this is indeed true. But it's not true everywhere. So we still have to remember to use all the other data returned by FindIntl.

This is less painful than it could have been, because I've made a new 'standard_target_configuration' function which adds standard stuff to every executable target we build, and folded in the existing statement that links them against libtarmac. So it's not a new function call per target - it mostly replaces one of the existing ones.