Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6093461

Browse files
author
John Chen
committed
Fix a CrossGen assert on Linux
Resource string loading during CrossGen doesn't work on Linux. Disable it for now. In many cases the loaded string isn't even used.
1 parent a27d5cc commit 6093461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilcode/sstring_com.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ HRESULT SString::LoadResourceAndReturnHR(CCompRC* pResourceDLL, CCompRC::Resourc
3939

4040
HRESULT hr = E_FAIL;
4141

42-
#ifndef FEATURE_UTILCODE_NO_DEPENDENCIES
42+
#if !defined(FEATURE_UTILCODE_NO_DEPENDENCIES) && !(defined(CROSSGEN_COMPILE) && defined(PLATFORM_UNIX))
4343
if (pResourceDLL == NULL)
4444
{
4545
pResourceDLL = CCompRC::GetDefaultResourceDll();

0 commit comments

Comments
 (0)