[cmake] [asan] Remove unnecessary gtest dep from dynamic tests
Remove the redundant dependency on 'gtest' target from the dynamic tests in non-MSVC environment. The tests reuse compiled objects from ASAN_INST_TEST_OBJECTS, and therefore they have been built against gtest already. This both fixes the spurious dependency on 'gtest' target that breaks stand-alone builds, and brings the dynamic tests more in line with regular tests which do not pass this dependency to add_compiler_rt_test() through generate_compiler_rt_tests(). Differential Revision: https://reviews.llvm.org/D38840 llvm-svn: 315620
This commit is contained in:
		
							parent
							
								
									48e7549691
								
							
						
					
					
						commit
						4e9e939b4f
					
				| 
						 | 
					@ -205,7 +205,7 @@ function(add_asan_tests arch test_runtime)
 | 
				
			||||||
      add_compiler_rt_test(AsanDynamicUnitTests "${dynamic_test_name}" "${arch}"
 | 
					      add_compiler_rt_test(AsanDynamicUnitTests "${dynamic_test_name}" "${arch}"
 | 
				
			||||||
        SUBDIR "dynamic"
 | 
					        SUBDIR "dynamic"
 | 
				
			||||||
        OBJECTS ${ASAN_INST_TEST_OBJECTS}
 | 
					        OBJECTS ${ASAN_INST_TEST_OBJECTS}
 | 
				
			||||||
        DEPS gtest asan ${ASAN_INST_TEST_OBJECTS}
 | 
					        DEPS asan ${ASAN_INST_TEST_OBJECTS}
 | 
				
			||||||
        LINK_FLAGS ${ASAN_DYNAMIC_UNITTEST_INSTRUMENTED_LINK_FLAGS}
 | 
					        LINK_FLAGS ${ASAN_DYNAMIC_UNITTEST_INSTRUMENTED_LINK_FLAGS}
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
    endif()
 | 
					    endif()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue