[PATCH] D40682: [driver] Set the 'simulator' environment for Darwin when -m<os>simulator-version-min is used

Bob Wilson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 17:06:45 PST 2017


bob.wilson requested changes to this revision.
bob.wilson added inline comments.
This revision now requires changes to proceed.


================
Comment at: lib/Driver/ToolChains/Darwin.cpp:1457-1465
   if (iOSVersion && (getTriple().getArch() == llvm::Triple::x86 ||
                      getTriple().getArch() == llvm::Triple::x86_64))
     Platform = IPhoneOSSimulator;
   if (TvOSVersion && (getTriple().getArch() == llvm::Triple::x86 ||
                       getTriple().getArch() == llvm::Triple::x86_64))
     Platform = TvOSSimulator;
   if (WatchOSVersion && (getTriple().getArch() == llvm::Triple::x86 ||
----------------
These checks should set the simulator target as well.


Repository:
  rC Clang

https://reviews.llvm.org/D40682





More information about the cfe-commits mailing list