The ToolChain class validates the -mthread-model flag in the constructor which doesn't work correctly since the thread model methods are virtual methods. The check is moved into Clang::ConstructJob() when constructing the internal command line.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The change looks good. Can you please add some test cases for this? Or do existing test cases cover this already?
Comment Actions
Should have added this to the description, but yes there are existing tests that cover this flag (test/Driver/thread-model.c). D37493 removes the only overridden thread model methods so we can't test the fix in this CL.