We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7ac07 commit 532f831Copy full SHA for 532f831
clang/tools/scan-build-py/lib/libear/ear.c
@@ -488,11 +488,12 @@ static int call_eaccess(const char *pathname, int mode) {
488
}
489
490
int is_nvcc_available(void) {
491
- char *value_compile = getenv("INTERCEPT_COMPILE_PATH");
492
- char *value_env = getenv("IS_INTERCEPT_COMPILE_PATH_FROM_ENV_PATH");
+ char *compiler = getenv("INTERCEPT_COMPILE_PATH");
+ char *is_compiler_exported =
493
+ getenv("IS_INTERCEPT_COMPILE_PATH_FROM_ENV_PATH");
494
495
// Consider tool chain is avaialbe only when it is available from env path.
- if (value_env && *value_env == '1' && value_compile) {
496
+ if (is_compiler_exported && *is_compiler_exported == '1' && compiler) {
497
return 1;
498
499
return 0;
0 commit comments