Skip to content

Compiler Option: -buildprefix


Set the internal buildprefix option.

Syntax

-buildprefix< name >`

`

Parameters

name

name to override the internal buildprefix option.

Description

The -buildprefix command line option overrides the internal buildprefix option.

Detailed behavior if using -buildprefix, -prefix, -target command line options

fbc's default options should work for native builds.

When building for other platforms or developing and building with multiple tool chains, these command line options can help ease the needs of various non-native or uncommon compilations:

  • Default prefix:
  • Override default prefix:
  • Default target:
  • Override default target:
  • Default buildprefix:
  • Override default buildprefix:
  • Default binary, include, and library paths:
  • Environment variables override tool name and path completely:

The tool name prefix (stored in the binary path) is set by default with 'target' + '-'.

'-buildprefix <name>' overrides the tool name prefix.

When 'binary path' is set (internally in the fbc compiler), it includes the prefix of the tool name.

For examples:

fbc -prefix /pppp/ -target tttt source.bas

gnu-AS invoked is: /pppp/bin/tttt-as

fbc -prefix /pppp/ -target tttt -buildprefix bbbbX source.bas

gnu-AS invoked is: /pppp/bin/bbbbXas

'-prefix' command line option controls top level path for fbc.

'-target' command line option controls code generation and many related options including the default tool name prefix.

'-buildprefix' command line option overrides the default tool name prefix.

Version

  • Since fbc 1.10.0

See also

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft