Host machine information (host_machine extends (追記) build_machine (追記ここまで))

Provides information about the host machine -- the machine on which the compiled binary will run. See Cross-compilation.

It has the same methods as (追記) build_machine (追記ここまで).

When not cross-compiling, all the methods return the same values as (追記) build_machine (追記ここまで) (because the build machine is the host machine).

Note that while cross-compiling, it simply returns the values defined in the cross-info file.

Inherited methods

build_machine.cpu()

Returns a more specific CPU name, such as i686, armv8l, etc.

Signature

(追記) str (追記ここまで) cpu()

build_machine.cpu_family()

Returns the CPU family name. This table contains all known CPU families. These are guaranteed to continue working.

Signature

(追記) str (追記ここまで) cpu_family()

build_machine.endian()

Returns 'big' on big-endian systems and 'little' on little-endian systems.

Signature

(追記) str (追記ここまで) endian()

build_machine.kernel()

Returns the name of the operating system kernel, such as linux, xnu, and nt. See here for a more complete list. These are more specific than system. If this cannot be detected (for the build machine), or is not set in the cross file (for the host machine when cross compiling), calling this method is fatal.

Signature

(since 1.2.0)

(追記) str (追記ここまで) kernel()

build_machine.subsystem()

Returns the variant of the operating system, such as ios and tvos. See here for a more complete list. These are more specific than system. If this cannot be detected (for the build machine), or is not set in the cross file (for the host machine when cross compiling), calling this method is fatal.

Signature

(since 1.2.0)

(追記) str (追記ここまで) subsystem()

build_machine.system()

Returns the operating system name. This table lists all of the currently known operating system names. These are guaranteed to continue working.

Signature

(追記) str (追記ここまで) system()

The results of the search are

AltStyle によって変換されたページ (->オリジナル) /