소스 검색

Tests/IncludeDirectories: Avoid shared library with no symbols

The parent commit added a empty_entry_test shared library to the
IncludeDirectories test.  Some toolchains fail to create a shared
library with no user-defined symbols, so provide a dummy symbol.
Brad King 12 년 전
부모
커밋
a97240b969
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      Tests/IncludeDirectories/empty.cpp

+ 4 - 1
Tests/IncludeDirectories/empty.cpp

@@ -1 +1,4 @@
-// No content
+#ifdef _WIN32
+__declspec(dllexport)
+#endif
+int empty() { return 0; }