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
llvm-svn: 334581
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
LINK_LIBS
lldCommon
- )
+
+ DEPENDS
+ WasmOptionsTableGen
+ ${tablegen_deps}
+ )
\ No newline at end of file