Skip to content

Commit 900f4aa

Browse files
author
Samat Gaynutdinov
committed
refactor: fix uppercase
1 parent de6c46d commit 900f4aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

server/src/printers/NativeMakefilePrinter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ namespace printer {
145145

146146
declareShellVariable("ASAN_LIB", Paths::getAsanLibraryPath(), declareVariableFunc);
147147

148-
declareShellVariable("CLANG", Paths::getUTBotClang(), declareVariableWithPriorityFunc, false, false);
148+
declareShellVariable("CLANG", Paths::getUTBotClang(), declareVariableWithPriorityFunc);
149149

150150
declareShellVariable("CLANGXX", Paths::getUTBotClangPP(), declareVariableWithPriorityFunc, false, false);
151151

152-
pathToShellVariable[Paths::getUTBotClang()] = StringUtils::stringFormat("$(%s)", "CLANG");
152+
// pathToShellVariable[Paths::getUTBotClang()] = StringUtils::stringFormat("$(%s)", "CLANG");
153153
pathToShellVariable[Paths::getUTBotClangPP()] = StringUtils::stringFormat("$(%s)", "CLANGXX");
154154

155155
declareShellVariable("GCC", Paths::getGcc(), declareVariableFunc);
@@ -708,10 +708,10 @@ namespace printer {
708708

709709
fs::path NativeMakefilePrinter::getRelativePathForLinker(fs::path path) const {
710710
const auto compiler = CompilationUtils::getCompilerName(path);
711-
if (compiler == CompilationUtils::CompilerName::CLANGXX) {
712-
// don't transform to canonical if CLANGXX
711+
if (compiler != CompilationUtils::CompilerName::CLANGXX) {
713712
return getRelativePath(path);
714713
}
714+
// don't transform to canonical if CLANGXX
715715
return getRelativePath(path, false);
716716
}
717717

server/src/printers/TestMakefilesPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace printer {
7979
// magic spell from https://stackoverflow.com/questions/18136918/how-to-get-current-relative-directory-of-your-makefile
8080
generalMakefilePrinter.declareVariable("export MAKEFILE_DIR", "$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))");
8181
generalMakefilePrinter.declareVariable("export PROJECT_DIR",
82-
StringUtils::stringFormat("%s/%s", "$(MAKEFILE_DIR)", "$(project_dir_relative_to_makefile)"));
82+
StringUtils::stringFormat("%s/%s", "$(MAKEFILE_DIR)", "$(PROJECT_DIR_RELATIVE_TO_MAKEFILE)"));
8383
generalMakefilePrinter.declareVariable("export BUILD_RELATIVE", objMakefilePrinter.buildDirectoryRelative);
8484
generalMakefilePrinter.declareVariable("export BUILD_DIR", StringUtils::stringFormat("%s/%s",
8585
objMakefilePrinter.getRelativePath(projectContext.projectPath),

0 commit comments

Comments
 (0)