[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    icecream/client
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2012-07-18 18:10:18
Message-ID: 20120718181018.3D103AC7A9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1306367 by lunakl:

fix clang includes path if not in /usr prefix

Since clang will be installed in /usr , it will be looking for them
under that prefix as well.



 M  +6 -2      icecc-create-env  


--- trunk/icecream/client/icecc-create-env #1306366:1306367
@@ -167,9 +167,13 @@
     add_file $added_compilerwrapper /usr/bin/g++
     # clang always uses its internal .h files
     clangincludes=$(dirname $($added_clang -print-file-name=include/limits.h))
+    clangprefix=$(dirname $(dirname $added_clang))
     for file in $clangincludes/*; do
-      file=$(readlink -e $file)
-      add_file "$file" "$file"
+      # get path without ..
+      destfile=$(readlink -e $file)
+      # and convert from <prefix> to /usr if needed
+      destfile=$(echo $destfile | sed "s#$clangprefix#/usr#" )
+      add_file "$file" "$destfile"
     done
 fi
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic