Changeset 32568 in project


Ignore:
Timestamp:
07/10/15 21:48:02 (5 years ago)
Author:
sjamaan
Message:

numbers: Attempt #42 to get -fexcess-precision behaviour portably applied: use try-compile to detect if the flag is supported

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/numbers/trunk/numbers.setup

    r32567 r32568  
    1010;; There seems to be no combination of feature test macros that
    1111;; enable strlcat in the BSDs while enabling setjmp in Linux.
    12 (compile -C -fexcess-precision=standard -s -O3 numbers.scm -j numbers)
     12(define maybe-precision-fix
     13  (if (try-compile "" cflags: "-c -fexcess-precision=standard")
     14      '(-C -fexcess-precision=standard) '()))
     15
     16(compile ,@maybe-precision-fix -s -O3 numbers.scm -j numbers)
    1317
    1418(compile -s -O3 numbers.import.scm)
Note: See TracChangeset for help on using the changeset viewer.