Changes between Initial Version and Version 1 of Ticket #4053, comment 25


Ignore:
Timestamp:
Sep 27, 2016, 11:00:14 PM (8 years ago)
Author:
leper

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4053, comment 25

    initial v1  
    1 Use `CC=${CC-gcc}`, which sets it to gcc in case it is not set or set to something empty. Since we assume that all compilers on *nix at least sort of imitate gcc (IIRC even icc does and support for that is likely more than just broken). (Checking that file we already use `${foo:=bar}`, so maybe just use that.) (Actually use `CXX`, but that should have been clear by now.)
     1Use `CC=${CC:-gcc}`, which sets it to gcc in case it is not set or set to something empty. Since we assume that all compilers on *nix at least sort of imitate gcc (IIRC even icc does and support for that is likely more than just broken). (Checking that file we already use `${foo:=bar}`, so maybe just use that.) (Actually use `CXX`, but that should have been clear by now.)
    22
    33You can also chain `test`(1) calls (`[` is just that) by doing `&&`, or better using `exp1 -a exp2`; and as fabio said compare the numbers as just that.