6.11 API for Platform Specifications
(require setup/matching-platform) | package: base |
Added in version 6.0.1.13 of package base.
procedure
(platform-spec? v) → boolean?
v : any/c
procedure
(matching-platform? spec [ #:system-type sys-type #:system-library-subpath sys-lib-subpath]) → boolean? spec : platform-spec? sys-type : (or/c #f symbol?) = (system-type)
sys-lib-subpath : (or/c #f path?) = (system-library-subpath #f)
Reports whether spec matches sys-type or
sys-lib-subpath, where #f values for the latter are
replaced with the default values.
If spec is a symbol, then the result is #t if sys-type is the same symbol, #f otherwise.
If spec is a string, then the result is #t if (path->string sys-lib-subpath) is the same string, #f otherwise.
If spec is a regexp value, then the result is #t if the regexp matches (path->string sys-lib-subpath), #f otherwise.