================ @@ -102,15 +102,33 @@ endif # If you change the defaults of CC, be sure to also change it in the file # test/builders/builder_base.py, which provides a Python way to return the # value of the make variable CC -- getCompiler(). -# -# See also these functions: -# o cxx_compiler -# o cxx_linker #---------------------------------------------------------------------- ifeq "$(CC)" "" $(error "C compiler is not specified. Please run tests through lldb-dotest or lit") endif +# Remove all " and ' characters from the path. Also remove surrounding space chars. +cstrip = $(strip $(subst ",,$(subst ',,$(1)))) +override CC := $(call cstrip,$(CC)) +override CCC := $(call cstrip,$(CCC)) +override CXX := $(call cstrip,$(CXX)) +# Always override the linker. Assign already normalized CC. +override LD := $(call cstrip,$(CC)) +# A kind of linker. It always gets retrieved from CC. +override LDC := $(call cstrip,$(CCC)) +override OBJCOPY := $(call cstrip,$(OBJCOPY)) +override STRIP := $(call cstrip,$(STRIP)) +override ARCHIVER := $(call cstrip,$(ARCHIVER)) +override AR := $(call cstrip,$(AR)) +override DWP := $(call cstrip,$(DWP)) +override LLVM_AR := $(call cstrip,$(LLVM_AR)) ---------------- dzhidzhoev wrote:
Yes, you're right, fixed it. https://github.com/llvm/llvm-project/pull/102185 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits