]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
compiler: Implicitly enable hide-internal with abi-stability wip/abi
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 19 Jan 2018 16:27:26 +0000 (17:27 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 12 Jul 2018 07:26:20 +0000 (09:26 +0200)
See https://gitlab.gnome.org/GNOME/vala/issues/598

compiler/valacompiler.vala

index c2f73c17e418ec1d4bc91446349ceb2f0eb4cb38..7fa139c62a1c7776e74ad0c1eca1ffcb72be4882 100644 (file)
@@ -239,6 +239,9 @@ class Vala.Compiler {
                        Report.warning (null, "-X has no effect when -C or --ccode is set");
                }
                context.abi_stability = abi_stability;
+               if (abi_stability) {
+                       context.hide_internal = true;
+               }
                context.compile_only = compile_only;
                context.header_filename = header_filename;
                if (header_filename == null && use_header) {