[PATCH] D39074: [libunwind][MIPS]: Add support for unwinding in N32 processes.

John Baldwin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 12 15:51:51 PST 2018


bsdjhb added a comment.

Hmmm, I'm a bit lost on the CFLAGS bit.  I couldn't find a reference to LIBOMP_TEST_CFLAGS anywhere in the openmp tree.  There is a LIBOMP_CFLAGS that doesn't appear to be test specific.

To try to find a way to modify the CFLAGS for tests I looked at how LIBUNWIND_BUILD_32_BITS works.  It sets a value (config.enable_32bit) in test/lit.site.cfg.in.  This is then used by the utils/libcxx/test/config.py script in the libcxx repository in the configure_default_compile_flags() function to add -m32 to CFLAGS.  There isn't an existing config.* knob that can add arbitrary things to CFLAGS though, so I think adding a LIBUNWIND_TEST_CFLAGS would mean changing the config.py to learn about a new 'config.cflags' or the like and then mapping LIBUNWIND_TEST_CFLAGS to that via lit.site.cfg.in?


Repository:
  rUNW libunwind

https://reviews.llvm.org/D39074





More information about the cfe-commits mailing list