]> granicus.if.org Git - php/commitdiff
trim when adding flags, avoid multiple spaces
authorAnatol Belski <ab@php.net>
Wed, 12 Nov 2014 16:23:06 +0000 (17:23 +0100)
committerAnatol Belski <ab@php.net>
Wed, 12 Nov 2014 16:57:18 +0000 (17:57 +0100)
win32/build/confutils.js

index 80a541637331f56c3e7d79f73a1c9468d125b4d5..181230f4ba0f418b8c1dc01bbdb81c4b6c54d099 100644 (file)
@@ -2066,6 +2066,7 @@ function ADD_FLAG(name, flags, target)
        if (target != null) {
                name = target.toUpperCase() + "_" + name;
        }
+       flags = flags.replace(/^\s+/, "").replace(/\s+$/, "");
        if (configure_subst.Exists(name)) {
                var curr_flags = configure_subst.Item(name);