-# The ARM CodeGen library depends on the AsmPrinter for just an
-# vtable, but GenLibDeps.pl is unable to detect it. So without this
-# the build fails with "undefined reference to `vtable for ..."
-target_link_libraries(LLVMARMCodeGen LLVMARMAsmPrinter)
+# workaround for hanging compilation on MSVC10
+if( MSVC_VERSION EQUAL 1600 )
+set_property(
+ SOURCE ARMISelLowering.cpp
+ PROPERTY COMPILE_FLAGS "/Od"
+ )
+endif()
+
+add_subdirectory(TargetInfo)
+add_subdirectory(AsmParser)
+add_subdirectory(Disassembler)
+add_subdirectory(InstPrinter)