Details
- Reviewers
nadav
Diff Detail
Event Timeline
lib/Target/X86/X86TargetMachine.cpp | ||
---|---|---|
43 | Isn't this a Windows-target thing? You've made it a Windows-host thing. |
lib/Target/X86/X86TargetMachine.cpp | ||
---|---|---|
43 | I'm building clang on Linux, running like this clang++ foo.cc and this code executes. My thoughts is that clang++ frontend isn't meant to generate Windows code because clang-cl is meant for this puprose. Should clang++ be able to generate Windows code? |
lib/Target/X86/X86TargetMachine.cpp | ||
---|---|---|
43 | clang-cl isn't meant to be the only way to produce Windows objects; it is meant to be a drop-in replacement for Microsoft cl.exe, and so *defaults* to producing Windows objects. So you don't want to use #ifdef here. If you can get your hands on the target triple, you could put this under a runtime test. |
lib/Target/X86/X86TargetMachine.cpp | ||
---|---|---|
43 | Ok. That means my patch have no sense. Thanks for your time! |
Isn't this a Windows-target thing? You've made it a Windows-host thing.