[lld] r334581 - [WebAssembly] Fix broken build due to missing attributes.inc

Aaron Smith via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 13 01:38:23 PDT 2018


Author: asmith
Date: Wed Jun 13 01:38:23 2018
New Revision: 334581

URL: http://llvm.org/viewvc/llvm-project?rev=334581&view=rev
Log:
[WebAssembly] Fix broken build due to missing attributes.inc

WebAssembly depends on attributes.h which includes attributes.inc. 
Unless cmake explicitly specifies this dependency, the .inc file 
is sometimes generated after the build tries to use it.

Patch by Stella Stamenova 

Modified:
    lld/trunk/wasm/CMakeLists.txt

Modified: lld/trunk/wasm/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/CMakeLists.txt?rev=334581&r1=334580&r2=334581&view=diff
==============================================================================
--- lld/trunk/wasm/CMakeLists.txt (original)
+++ lld/trunk/wasm/CMakeLists.txt Wed Jun 13 01:38:23 2018
@@ -2,6 +2,10 @@ set(LLVM_TARGET_DEFINITIONS Options.td)
 tablegen(LLVM Options.inc -gen-opt-parser-defs)
 add_public_tablegen_target(WasmOptionsTableGen)
 
+if(NOT LLD_BUILT_STANDALONE)
+  set(tablegen_deps intrinsics_gen)
+endif()
+
 add_lld_library(lldWasm
   Driver.cpp
   InputChunks.cpp
@@ -27,4 +31,8 @@ add_lld_library(lldWasm
 
   LINK_LIBS
   lldCommon
-  )
+
+  DEPENDS
+  WasmOptionsTableGen
+  ${tablegen_deps}
+  )
\ No newline at end of file




More information about the llvm-commits mailing list