diff options
author | Chris Bieneman <chris.bieneman@me.com> | 2019-08-05 18:00:55 +0000 |
---|---|---|
committer | Chris Bieneman <chris.bieneman@me.com> | 2019-08-05 18:00:55 +0000 |
commit | cd26b1ae2c918f4620fc1d7209338c07118937c1 (patch) | |
tree | a3f498a4c41be1f332971f6a654ff1ef0f257232 | |
parent | 3c0c6e5c50d64fe6b247373ff73edcbf46c337b6 (diff) | |
download | bcm5719-llvm-cd26b1ae2c918f4620fc1d7209338c07118937c1.tar.gz bcm5719-llvm-cd26b1ae2c918f4620fc1d7209338c07118937c1.zip |
NFC. Documenting Native tablegen dependency
Adding documentation explaining why this dependency is required and should not be removed again.
llvm-svn: 367896
-rw-r--r-- | llvm/cmake/modules/TableGen.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake index 23c8fd8a2ba..ca9357e295e 100644 --- a/llvm/cmake/modules/TableGen.cmake +++ b/llvm/cmake/modules/TableGen.cmake @@ -125,6 +125,9 @@ macro(add_tablegen target project) if(LLVM_USE_HOST_TOOLS) if( ${${project}_TABLEGEN} STREQUAL "${target}" ) + # The NATIVE tablegen executable *must* depend on the current target one + # otherwise the native one won't get rebuilt when the tablgen sources + # change, and we end up with incorrect builds. build_native_tool(${target} ${project}_TABLEGEN_EXE DEPENDS ${target}) set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE) |