Forráskód Böngészése

* 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 3 éve
szülő
commit
d6e8375e64
1 módosított fájl, 1 hozzáadás és 0 törlés
  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