Changeset 38051 in project


Ignore:
Timestamp:
01/05/20 17:21:03 (9 months ago)
Author:
sjamaan
Message:

Add try-compile to compile-file egg docs for C5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/compile-file

    r35601 r38051  
    4242The initial default options are {{-scrutinize -O2 -d2}}.
    4343
     44
     45==== try-compile
     46
     47<procedure>(try-compile CODE #!key cc cflags ldflags compile-only c++)</procedure>
     48
     49Returns {{#t}} if the C code in {{CODE}} compiles and links successfully, or {{#f}} otherwise.
     50The keyword parameters {{cc}} (compiler name, defaults to the C compiler used to build this system),
     51{{cflags}} and {{ldflags}} accept additional compilation and
     52linking options. If {{compile-only}} is true, then no linking step takes place.
     53If the keyword argument {{c++}} is given and true, then the code will be compiled in C++ mode.
     54
     55{{compile-file-options}} is **not** used.
     56
    4457=== Author
    4558
Note: See TracChangeset for help on using the changeset viewer.