diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-10-10 18:17:35 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-16 17:10:15 +0200 |
commit | 15188f25990e8c10b180e6532cdb6e855ef20200 (patch) | |
tree | bf6e9decc71e5d514bd9fba11711d4148cb11581 /configure | |
parent | c0264050938c04723f7dc9295ef87cf41ab7a8ae (diff) |
de-duplicate QMAKE_DEFAULT_LIBDIRS after all
but this time without reshuffling it. it's actually easy with awk.
this makes the resulting qconfig.pri cleaner (and thus easier to debug).
and configure needs a few millisecs less to finish. ^^
QMAKE_DEFAULT_INCDIRS doesn't appear to contain dupes to start with.
Change-Id: I9eed2cf853cd15d0d24a885b1c3d69f22ffafb36
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3070,7 +3070,10 @@ $1 == "LIBRARY_PATH" { print "DEFAULT_LIBDIRS=\""; for (lib in library_paths) { dir = normalize(library_paths[lib]); - print quote(dir) " "; + if (!(dir in dirs)) { + print quote(dir) " "; + dirs[dir] = 1; + } } print "\"\n" } |