[x86/Linux] Fix compile error in codeman#8296
Conversation
|
Please ignore the x86 compatjit and x86 legacy_backend jobs if they fail. They have been removed from future PRs. |
| #define HAS_NDIRECT_IMPORT_PRECODE 1 | ||
|
|
||
| #ifdef FEATURE_PAL | ||
| #define USE_INDIRECT_CODEHEADER |
There was a problem hiding this comment.
This should be left undefined (see my comment about changing the ABI in the other PR).
There was a problem hiding this comment.
OK, thank you for point this.
| #if !defined(FEATURE_PAL) | ||
| LPCWSTR pwzJitName = MAKEDLLNAME_W(L"compatjit"); | ||
| #else | ||
| LPCWSTR pwzJitName = MAKEDLLNAME_W(u"compatjit"); |
There was a problem hiding this comment.
There is W(...) macro to do this without ifdefs.
|
If I tried to block |
|
Pretty much all |
|
Maybe we should invent a new #define for this. |
Good to hear :) . Codes seems not about Exception. Could you give a good new directive?
The change spread to several files, threads.cpp, jitinterface.cpp, eedbginterfaceimpl.cpp and h, stackwalk.cpp and h and maybe so on. It is scary to change not knowing much. @parjong has also tried fixing this compile error another way so if adding |
You may be better off to just make it compile on Linux x86 same way as it compile on Windows x86 (ie without WIN64EXCEPTIONS defined). It should allow you to get hello world running, with much fewer changes. And then try to turn on WIN64EXCEPTIONS as isolated change that is not mixed up with the rest. |
|
@ OK Thanks, I'll try again :) |
Fix compile error for x86/Linux - add !_TARGET_X86_ to WIN64EXCEPTIONS directives - fix "use of undeclared identifier 'NEED_TO_PORT_THIS_ONE'" - fix "no member named 'GetUnwindInfo' in '_hpCodeHdr'" - fix "use of undeclared identifier 'RUNTIME_FUNCTION__EndAddress'"
|
Please wait, need to resolve with another PR by parjong. |
Yeah, I am starting to think the same. I have not realized before that the WIN64EXCEPTIONS is used at that many places in the source. |
Yes, It's getting huge. I'll close this PR and restart from without |
Fix compile error for x86/Linux