Cycles: Avoid having two consequence getenv() calls

This commit is contained in:
Sergey Sharybin 2015-11-28 21:05:12 +05:00
parent 6147c4037d
commit 2ae7593700

@ -304,8 +304,9 @@ public:
}
#endif
if(getenv("CYCLES_CUDA_EXTRA_CFLAGS")) {
command += string(" ") + getenv("CYCLES_CUDA_EXTRA_CFLAGS");
const char* extra_cflags = getenv("CYCLES_CUDA_EXTRA_CFLAGS");
if(extra_cflags) {
command += string(" ") + string(extra_cflags);
}
#ifdef WITH_CYCLES_DEBUG