1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/cmake/modules
Michal Gorny d98f2d8cc6 [OCaml] Respect CMAKE_C_FLAGS for OCaml C files
Pass the values of CMAKE_C_FLAGS and CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE}
as -ccopt to ocamlc. This enforces the specific flags used for the LLVM
build to be used for OCaml bindings as well, notably -O and -march
flags.

This also solves the issue of the user being unable to force specific
flags for OCaml bindings builds. Gentoo needs this to enforce -DNDEBUG
consistently between the LLVM build and the split OCaml bindings build.

Differential Revision: https://reviews.llvm.org/D35898

llvm-svn: 309320
2017-07-27 21:13:19 +00:00
..
AddLLVM.cmake [Solaris] Detect Solaris LD, use detection results to pass Solaris-ld options 2017-07-12 21:43:14 +00:00
AddLLVMDefinitions.cmake
AddOCaml.cmake [OCaml] Respect CMAKE_C_FLAGS for OCaml C files 2017-07-27 21:13:19 +00:00
AddSphinxTarget.cmake CMake: Fix docs-llvm-man target when clang+llvm is in the same source tree 2017-05-15 09:34:23 +00:00
CheckAtomic.cmake
CheckCompilerVersion.cmake
CheckLinkerFlag.cmake
ChooseMSVCCRT.cmake
CMakeLists.txt
CrossCompile.cmake
DetermineGCCCompatible.cmake
FindOCaml.cmake
FindSphinx.cmake
GenerateVersionFromCVS.cmake
GetHostTriple.cmake
GetSVN.cmake [cmake] GetSVN.cmake takes a list of arguments 2017-07-19 18:37:02 +00:00
HandleLLVMOptions.cmake [CMake] Disable -Werror for CMake checks 2017-07-26 23:49:18 +00:00
HandleLLVMStdlib.cmake
LLVM-Config.cmake
LLVMConfig.cmake.in
LLVMConfigVersion.cmake.in
LLVMExternalProjectUtils.cmake Generate a compile_commands.json DB for external projects. 2017-07-20 23:46:46 +00:00
LLVMInstallSymlink.cmake
LLVMProcessSources.cmake
TableGen.cmake [CMake] Fix broken builds from r309029 2017-07-25 20:58:14 +00:00
VersionFromVCS.cmake CMake: Silence more stderr when running git. 2017-05-02 16:37:37 +00:00