weixin_39822993 2020-11-30 11:25
浏览 0

Fix crash when running IWYU on IWYU

Originally reported on Google Code with ID 98


Purpose of code changes on this branch:
When I tried to run IWYU on IWYU itself on Windows, it crashed.

After some digging, I learned that tools need to call llvm::InitializeNativeTarget
and friends in order for target-specific operations to be wired up correctly. Presumably
there's something in the Windows build triggering inline asm parsing.

After the review, I'll merge this branch into:
/trunk

Reported by kim.grasman on 2013-06-26 20:04:12

该提问来源于开源项目:include-what-you-use/include-what-you-use

  • 写回答

5条回答 默认 最新

  • weixin_39822993 2020-11-30 11:25
    关注
    
    On Mac OS X IWYU works fine with and without this patch. Patch looks good to me. But
    I think we should keep an eye on this code. IWYU doesn't perform JITing and if JIT
    is required by Windows headers, I believe all JIT preparations will be done by Clang
    itself. So I expect that this code will be unnecessary in the future.
    

    Reported by vsapsai on 2013-06-30 17:38:52

    评论

报告相同问题?