Linking libjulia doesn't fail even when llvm-config fails

I had inadvertently deleted all the libLLVMDebugInfoDWARF.so* files while executing rm *DWARF* in llvm_build/lib. While llvm-config associated with the build exited with errors, the Julia build using the same build did not,

$ make debug -j3
llvm-config: error: missing: /home/sanjay/Software/julia_vanilla/llvm-svn_build/lib/libLLVMDebugInfoDWARF.so
llvm-config: error: missing: /home/sanjay/Software/julia_vanilla/llvm-svn_build/lib/libLLVMDebugInfoDWARF.so
llvm-config: error: missing: /home/sanjay/Software/julia_vanilla/llvm-svn_build/lib/libLLVMDebugInfoDWARF.so
    LINK usr/lib/libjulia-debug.so.0.7.0
    JULIA usr/lib/julia/inference.ji
/home/sanjay/Software/julia_vanilla/julia_src/usr/bin/julia-debug: symbol lookup error: /home/sanjay/Software/julia_vanilla/julia_src/usr/bin/../lib/libjulia-debug.so.0.7: undefined symbol: _ZN4llvm23EnableABIBreakingChecksE
make[1]: *** [/home/sanjay/Software/julia_vanilla/julia_src/usr/lib/julia/inference.ji] Error 127
make: *** [julia-inference] Error 2
$ ../llvm-svn_build/bin/llvm-config --libs DebugInfoDWARF
llvm-config: error: missing: /home/sanjay/Software/julia_vanilla/llvm-svn_build/lib/libLLVMDebugInfoDWARF.so
$ echo $?
1

The symbol “_ZN4llvm23EnableABIBreakingChecksE” is found in libLLVMDebugInfoDWARF.so.

Is this expected behaviour ?