[LLVMdev] Checking llvm-config status code

Yuri Gribov tetra2005 at googlemail.com
Sun Aug 29 13:23:21 PDT 2010


Hm, it turns out that only GNU make has $(error...). Does anyone know
how we can simulate it in generic make?

For GNU it's easy but ugly:
  LlvmConfigResult := $(shell $(LLVM_CONFIG) --libs
$(LINK_COMPONENTS) || echo Error)
  ifeq ($(LlvmConfigResult),Error)
  $(error llvm-config failed)
  endif
  LLVMLibsOptions += $(LlvmConfigResult)

-Yuri



More information about the llvm-dev mailing list