Thanks! I just committed the patch. Katya. > -----Original Message----- > From: Jonathan Roelofs [mailto:jonat...@codesourcery.com] > Sent: Tuesday, October 13, 2015 3:40 PM > To: Romanova, Katya; al...@leftfield.org; Robinson, Paul; > echri...@gmail.com; filcab+llvm.phabrica...@gmail.com; > jonat...@codesourcery.com > Cc: Bedwell, Greg; pierregoussea...@gmail.com; > an...@korobeynikov.info; geek4ci...@gmail.com; cfe- > comm...@lists.llvm.org; chisophu...@gmail.com > Subject: Re: [PATCH] D13482: Revised Initial patch for PS4 toolchain > > jroelofs accepted this revision. > jroelofs added a reviewer: jroelofs. > jroelofs added a comment. > > One small suggestion. Otherwise, this still LGTM. > > > ================ > Comment at: lib/Driver/ToolChains.cpp:4078 @@ +4077,3 @@ > + // should be <SDK_DIR>/host_tools/bin. > + const char *EnvValue = getenv("SCE_PS4_SDK_DIR"); if (EnvValue && > + !llvm::sys::fs::exists(EnvValue)) > ---------------- > It might help to structure this: > > const char *EnvValue = getenv("SCE_PS4_SDK_DIR"); > if (EnvValue && !llvm::sys::fs::exists(EnvValue)) > getDriver().Diag(clang::diag::warn_drv_ps4_sdk_dir) << EnvValue; > > SmallString<512> PS4SDKDir(EnvValue ? EnvValue : getDriver().Dir); > if (!EnvValue) { > llvm::sys::path::append(PS4SDKDir, "/../../"); > } > > > as: > > SmallString<512> PS4SDKDir; > if (const char *EnvValue = getenv("SCE_PS4_SDK_DIR")) > if (!llvm::sys::fs::exists(EnvValue)) > getDriver().Diag(clang::diag::warn_drv_ps4_sdk_dir) << EnvValue; > > PS4SDKDir = EnvValue; > } else { > PS4SDKDir = getDriver().Dir; > llvm::sys::path::append(PS4SDKDir, "/../../"); > } > > > Repository: > rL LLVM > > http://reviews.llvm.org/D13482 > >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits