[vala/staging] compiler: Implicitly enable hide-internal with abi-stability



commit f4249bf60168ba77365e09bdc15f1c307de2d6d0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Jan 19 17:27:26 2018 +0100

    compiler: Implicitly enable hide-internal with abi-stability
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789069

 compiler/valacompiler.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 8edb074..5097b64 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]