소스 검색

Disable pragma in Linux build (#2960)

`#pragma comment(.., some.lib)` causes a build failure in some Linux
compilers. This commit disables it for Linux build.
Jaebaek Seo 5 년 전
부모
커밋
05f2ef939a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tools/clang/tools/dxclib/dxc.cpp

+ 2 - 0
tools/clang/tools/dxclib/dxc.cpp

@@ -66,7 +66,9 @@
 #include <algorithm>
 #include <unordered_map>
 
+#ifdef _WIN32
 #pragma comment(lib, "version.lib")
+#endif
 
 // SPIRV Change Starts
 #ifdef ENABLE_SPIRV_CODEGEN