Explorar o código

* apply default replacements also to defines set by -d:
- -d with $ is not possible so this should not break any existing compiler call
- this fixes also the strange error message "Error: malformed parameter: -dlinux"
when e.g. -d$FPCOS is passed as the default replacements are applied to the
error message

florian %!s(int64=3) %!d(string=hai) anos
pai
achega
d6e8375e64
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      compiler/options.pas

+ 1 - 0
compiler/options.pas

@@ -1964,6 +1964,7 @@ begin
            'd' :
              begin
                l:=Pos(':=',more);
+               DefaultReplacements(more);
                if l>0 then
                  hs:=copy(more,1,l-1)
                else