diff options
author | Ian Lance Taylor <iant@google.com> | 2012-10-31 00:38:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-10-31 00:38:49 +0000 |
commit | 4e1866fe6f17ad219a2855ab21b5e45de225ce25 (patch) | |
tree | 8e27ff062ee5234453cbd514cc8ccfd5feba4037 /gcc/go/gccgo.texi | |
parent | a46837fe1cda1a23de3f99a0c5f7716251eee416 (diff) | |
download | gcc-4e1866fe6f17ad219a2855ab21b5e45de225ce25.zip gcc-4e1866fe6f17ad219a2855ab21b5e45de225ce25.tar.gz gcc-4e1866fe6f17ad219a2855ab21b5e45de225ce25.tar.bz2 |
compiler: Add -fgo-relative-import-path.
* lang.opt (-fgo-relative-import-path): New option.
* go-lang.c (go_relative_import_path): New static variable.
(go_langhook_init): Pass go_relative_import_path to
go_create_gogo.
(go_langhook_handle_option): Handle -fgo-relative-import-path.
* go-c.h (go_create_gogo): Update declaration.
* gccgo.texi (Invoking gccgo): Document
-fgo-relative-import-path.
From-SVN: r193008
Diffstat (limited to 'gcc/go/gccgo.texi')
-rw-r--r-- | gcc/go/gccgo.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/go/gccgo.texi b/gcc/go/gccgo.texi index a5e37e7..91930c8 100644 --- a/gcc/go/gccgo.texi +++ b/gcc/go/gccgo.texi @@ -184,6 +184,12 @@ Using either @option{-fgo-pkgpath} or @option{-fgo-prefix} disables the special treatment of the @code{main} package and permits that package to be imported like any other. +@item -fgo-relative-import-path=@var{dir} +@cindex @option{-fgo-relative-import-path} +A relative import is an import that starts with @file{./} or +@file{../}. If this option is used, @command{gccgo} will use +@var{dir} as a prefix for the relative import when searching for it. + @item -frequire-return-statement @itemx -fno-require-return-statement @cindex @option{-frequire-return-statement} |