Source

gdc / d / lang.opt

Full commit
; GDC -- D front-end for GCC
; Copyright (C) 2004 David Friedman
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

; This is used in GCC 3.4+

Language
D

fassert
D
Generate runtime code for assert()'s

; For D: defaults to on
fbounds-check
D
Generate code to check bounds before indexing arrays

fbuiltin
D
Recognize built-in functions

fdebug
D
Compile in debug code

fdebug=
D Joined RejectNegative
-fdebug,-fdebug=<level>,-fdebug=<ident> Compile in debug code, code <= level, or code identified by ident

fdebug-c
D
With -g, generate C debug information for debugger compatibility

fdeprecated
D
Allow use of deprecated features

fdeps=
D Joined RejectNegative
-fdeps=<filename> Write module dependencies to filename

fdoc
D
Generate documentation

fdoc-dir=
D Joined RejectNegative
-fdoc-dir=<docdir> Write documentation file to docdir directory

fdoc-file=
D Joined RejectNegative
-fdoc-file=<filename> Write documentation file to filename

fdoc-inc=
D Joined RejectNegative
-fdoc-inc=<filename> Include a Ddoc macro file

fdump-source
D RejectNegative
Dump decoded UTF-8 text and source from HTML

fd-inline-asm
D
Enable the use of assembly code in D_InlineAsm version blocks.

fd-verbose
D
Print information about D language processing to stdout

fd-version=1
D RejectNegative
Compile as D language version 1

fd-vtls
D
List all variables going into thread local storage

femit-templates
D
-femit-templates Emit templates code and data even if the linker cannot merge multiple copies

femit-templates=
D Joined RejectNegative
-femit-templates=[normal|private|all|none|auto]	Control template emission

fignore-unknown-pragmas
D
Ignore unsupported pragmas

fin
D
Generate runtime code for in() contracts

fintfc
Generate D interface files

fintfc-dir=
D Joined RejectNegative
-fintfc-dir=<dir> Write D interface files to directory <dir>

fintfc-file=
D Joined RejectNegative
-fintfc-file=<filename> Write D interface file to <filename>

finvariants
D
Generate runtime code for invariant()'s

fmake-deps=
D Joined RejectNegative
-fmake-deps=<file> Write dependency output to the given file

fmake-mdeps=
D Joined RejectNegative
Like -fmake-deps=<file> but ignore system header files

fonly=
D Joined RejectNegative
Process all modules specified on the command line, but only generate code for the module specified by the argument.

fout
D
Generate runtime code for out() contracts

fproperty
D
Enforce property syntax

frelease
D
Compile release version

funittest
D
Compile in unittest code

fversion=
D Joined RejectNegative
-fversion=<level|ident> Compile in version code >= <level> or identified by <ident>

fXf=
D Joined RejectNegative
-fXf=<filename> Write JSON file to <filename>

imultilib
D Joined Separate
-imultilib <dir> Set <dir> to be the multilib include subdirectory

iprefix
D Joined Separate
-iprefix <path>	Specify <path> as a prefix for next two options

isysroot
D Joined Separate
-isysroot <dir>	Set <dir> to be the system root directory

isystem
D Joined Separate
-isystem <dir>	Add <dir> to the start of the system include path

I
D Joined Separate
-I <dir>	Add <dir> to the end of the main include path.

J
D Joined Separate
-J <dir>	Add <dir> to the end of the string import path.

nostdinc
D
Do not search standard system include directories

Wall
D
Enable most warning messages

Werror
D
Error out the compiler on warnings

Wsign-compare
D
Warn about signed-unsigned comparisons

Wunknown-pragmas
D Warning
Warn about unrecognized pragmas



; Everything below this line is used in 4.6+

debuglib=
Driver Joined
Debug library to use instead of phobos

defaultlib=
Driver Joined
Default library to use instead of phobos

fod=
Driver Joined
-fod=<directory> Specify the object output directory.

fop
Driver
Specify that the source file's parent directories should be appended to the object output directory.

nophoboslib
Driver

static_libphobos
Driver