Warn rather than fail if the .o comes from, say assembly.

This commit is contained in:
Ian A. Mason 2018-08-06 09:43:38 -07:00
parent 61a5de2894
commit 3de212139a
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- ${GLLVM_SRC}/.travis/install_llvm.sh
- export PATH="/usr/local/opt/llvm/bin:$PATH"
# if we have to use our own bottle again.
# - export PATH="/usr/local/opt/llvm_lite/bin:$PATH"

View File

@ -609,7 +609,7 @@ func extractSectionDarwin(inputFile string) (contents []string) {
}
sectionContents, errContents := section.Data()
if errContents != nil {
LogFatal("Error reading the %s section of Mach-O file %s.", DarwinSectionName, inputFile)
LogWarning("Error reading the %s section of Mach-O file %s.", DarwinSectionName, inputFile)
}
contents = strings.Split(strings.TrimSuffix(string(sectionContents), "\n"), "\n")
return