[PATCH] D96091: [WebAssembly] Use single-threaded mode when -matomics isn't enabled.
    Sam Clegg via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Feb  4 18:53:14 PST 2021
    
    
  
sbc100 added inline comments.
================
Comment at: clang/lib/Basic/Targets/WebAssembly.cpp:260
+  if (!HasAtomics) {
+    Opts.POSIXThreads = false;
+    Opts.setThreadModel(LangOptions::ThreadModelKind::Single);
----------------
POSIXThreads already defaults to false I think.   It gets set if the user specified `-pthread` on the command line I think.   I think there should be no need to override it.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96091/new/
https://reviews.llvm.org/D96091
    
    
More information about the llvm-commits
mailing list