DkSDKInspectCCompiler¶
- DkSDKInspectCCompiler_DetectTargetABI¶
DkSDKInspectCCompiler_DetectTargetABI( [FOR_HOST_ABI] )
Introspects the C compiler to find the DkML-compatible ABI and OS that the C compiler is targeting.
Arguments¶
- FOR_HOST_ABI
Ordinarily the output CACHE variables and result variables will be
DKML_TARGET_*.When
FOR_HOST_ABIis specified, the output CACHE variables will beDKML_HOST_*.Use
FOR_HOST_ABIwhen there is an existing ocamlc compiler that is known to produce host ABI executables.
Output CACHE Variables¶
Sets the following CACHE variables:
DKML_TARGET_HAVE_AFLif and only if it has not been set.DKML_TARGET_ABIif and only if it has not been set
Result Variables¶
DKML_TARGET_OSOne of:
OSXIOSAndroidLinuxWindows
DKML_TARGET_ABI_UPPER_SANITIZEDA form of
DKML_TARGET_ABIthat is both:upper-cased, and
all non-alphabet characters (that is, not A-Z or 0-9) replaced with underscores ()``_``)
For example, if
DKML_TARGET_ABIiswindows_x86_64thenDKML_TARGET_ABI_UPPER_SANITIZEDwould beWINDOWS_X86_64.
