@@ -281,11 +281,9 @@ class CompilerTest : public ::testing::Test {
281
281
282
282
void TestPdbUtils (bool bSlim, bool bLegacy, bool bStrip);
283
283
284
- #ifdef _WIN32 // No ContainerBuilder support yet
285
284
HRESULT CreateContainerBuilder (IDxcContainerBuilder **ppResult) {
286
285
return m_dllSupport.CreateInstance (CLSID_DxcContainerBuilder, ppResult);
287
286
}
288
- #endif
289
287
290
288
template <typename T, typename TDefault, typename TIface>
291
289
void WriteIfValue (TIface *pSymbol, std::wstringstream &o,
@@ -855,8 +853,6 @@ TEST_F(CompilerTest, CompileWhenWorksThenDisassembleWorks) {
855
853
// WEX::Logging::Log::Comment(disassembleStringW.m_psz);
856
854
}
857
855
858
- #ifdef _WIN32 // Container builder unsupported
859
-
860
856
TEST_F (CompilerTest, CompileWhenDebugWorksThenStripDebug) {
861
857
CComPtr<IDxcCompiler> pCompiler;
862
858
CComPtr<IDxcOperationResult> pResult;
@@ -1031,6 +1027,7 @@ TEST_F(CompilerTest, CompileThenAddCustomDebugName) {
1031
1027
VERIFY_IS_NULL (pPartHeader);
1032
1028
}
1033
1029
1030
+ #ifdef _WIN32 // No PDBUtil support
1034
1031
static void VerifyPdbUtil (dxc::DxcDllSupport &dllSupport,
1035
1032
IDxcBlob *pBlob, IDxcPdbUtils *pPdbUtils,
1036
1033
const WCHAR *pMainFileName,
@@ -1469,7 +1466,6 @@ static void VerifyPdbUtil(dxc::DxcDllSupport &dllSupport,
1469
1466
}
1470
1467
}
1471
1468
1472
- #ifdef _WIN32
1473
1469
1474
1470
TEST_F (CompilerTest, CompileThenTestPdbUtilsStripped) {
1475
1471
if (m_ver.SkipDxilVersion (1 , 5 )) return ;
@@ -1986,7 +1982,7 @@ TEST_F(CompilerTest, CompileThenTestPdbUtilsEmptyEntry) {
1986
1982
VERIFY_ARE_EQUAL (pEntryName, L" main" );
1987
1983
}
1988
1984
1989
- #endif
1985
+ #endif // _WIN32 - No PDBUtil support
1990
1986
1991
1987
void CompilerTest::TestResourceBindingImpl (
1992
1988
const char *bindingFileContent,
@@ -2330,6 +2326,7 @@ TEST_F(CompilerTest, CompileWithRootSignatureThenStripRootSignature) {
2330
2326
VERIFY_IS_NOT_NULL (pPartHeader);
2331
2327
}
2332
2328
2329
+ #if _WIN32 // API -setrootsignature requires reflection, which isn't supported on non-win
2333
2330
TEST_F (CompilerTest, CompileThenSetRootSignatureThenValidate) {
2334
2331
CComPtr<IDxcCompiler> pCompiler;
2335
2332
VERIFY_SUCCEEDED (CreateCompiler (&pCompiler));
@@ -2464,7 +2461,7 @@ TEST_F(CompilerTest, CompileThenSetRootSignatureThenValidate) {
2464
2461
pRSBlobReplace->GetBufferPointer (),
2465
2462
pRSBlob->GetBufferSize ()));
2466
2463
}
2467
-
2464
+ # endif // _WIN32 - API -setrootsignature requires reflection, which isn't supported on non-win
2468
2465
TEST_F (CompilerTest, CompileSetPrivateThenWithStripPrivate) {
2469
2466
CComPtr<IDxcCompiler> pCompiler;
2470
2467
CComPtr<IDxcOperationResult> pResult;
@@ -2585,7 +2582,6 @@ TEST_F(CompilerTest, CompileWithMultiplePrivateOptionsThenFail) {
2585
2582
" Cannot specify /Qpdb_in_private and /setprivate together." ;
2586
2583
CheckOperationResultMsgs (pResult, &pErrorMsg2, 1 , false , false );
2587
2584
}
2588
- #endif // Container builder unsupported
2589
2585
2590
2586
TEST_F (CompilerTest, CompileWhenIncludeThenLoadInvoked) {
2591
2587
CComPtr<IDxcCompiler> pCompiler;
0 commit comments