Ignore:
Timestamp:
Mar 11, 2010, 2:53:08 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: os2/gnumake: Fixed r670 regression.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r670 r671  
    777777                         "(?:\\$\\(([^$)]+)\\))");
    778778    rx.setMinimal(true);
    779     ret.replace(rx, "$(call q,$(\\1\\2))");
     779    int pos = 0;
     780    while ((pos = rx.indexIn(ret, pos)) != -1) {
     781        QString var = rx.cap(1);
     782        if (var.isEmpty())
     783            var = rx.cap(2);
     784        // there are some make variables that contain multiple paths which we
     785        // cannot escape (finding double-quoted spaces is too complex for
     786        // the q function), so just skip them hoping they contain no spaces...
     787        if (var != "OBJECTS") {
     788            var = QString("$(call q,$(%1))").arg(var);
     789            ret.replace(pos, rx.matchedLength(), var);
     790            pos += var.length();
     791        } else {
     792            pos += rx.matchedLength();
     793        }
     794    }
    780795    return ret;
    781796}
Note: See TracChangeset for help on using the changeset viewer.