[LLVMdev] [patch] EXPORTED_SYMBOL_FILE using mingw and cmake

Dan Liew dan at su-root.co.uk
Wed Jul 23 01:38:04 PDT 2014


Okay I guess the test would be something like this then

if (CMAKE_GENERATOR STREQUAL "MinGW Makefiles")
  # mingw workaround, as file(TO_NATIVE_PATH ...) is implemented incorrectly
  # See http://public.kitware.com/Bug/print_bug_page.php?bug_id=5939
  string(REPLACE / \\ export_file_backslashes "${export_file}")
else()
  file(TO_NATIVE_PATH "${export_file}" export_file_backslashes)
endif()

I've written this into patch applied against trunk. Could you test
this (I don't use MinGW and don't have time to set it up) and confirm
it works? It would be great if you could test that the
file(TO_NATIVE_PATH ...) still gets used for the MSYS-Makefiles and
Cygwin generators.

It's also good to see some activity on the CMake bug report :)

If it all works then I can commit on your behalf.

Thanks,
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw_makefile_cmake_fix.patch
Type: text/x-patch
Size: 904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140723/4521e368/attachment.bin>


More information about the llvm-dev mailing list