Opened 8 years ago

Closed 8 years ago

#1939 closed defect (fixed)

configure does not check for clang correctly

Reported by: jeremyhu@… Owned by: diego@…
Priority: normal Component: build system
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

--- configure.orig 2011-06-24 11:52:31.000000000 -0700
+++ configure 2011-06-24 11:53:10.000000000 -0700
@@ -1661,8 +1661,7 @@ else

echores "$cc_version"
break

fi

  • cc_name_tmp=$($_cc -v 2>&1 | head -n 1 | cut -d ' ' -f 1)
  • if test "$cc_name_tmp" = "clang"; then

+ if $_cc -v 2>&1 | grep -q "clang"; then

echocheck "$_cc version"
cc_vendor=clang
cc_version=$($_cc -dumpversion 2>&1)

$ /opt/llvm/bin/clang -v
clang version 3.0 (http://llvm.org/git/clang.git ffb945ffb5d29b80fd93649c3572b6d87abce3fc)
Target: x86_64-apple-darwin11.0.0
Thread model: posix

$ /usr/bin/clang -v
Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.0.0
Thread model: posix

Change History (1)

comment:1 Changed 8 years ago by diego@…

  • op_sys changed from Mac OS X to All
  • rep_platform changed from Other to All
  • Resolution set to fixed
  • Status changed from new to closed

I applied your patch, thank you.

Note: See TracTickets for help on using tickets.