[glib] docs: Mention that we build with strict-aliasing disabled



commit e42ff0105d19be382f6c4e460c46ac9e18f92b25
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Jan 8 12:00:39 2018 +0000

    docs: Mention that we build with strict-aliasing disabled
    
    Hopefully discouraging people from overriding that and building with it
    enabled.
    
    Pro-tip: GLib will break.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=791622

 docs/reference/glib/building.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/glib/building.xml b/docs/reference/glib/building.xml
index 1652add..57c3c8c 100644
--- a/docs/reference/glib/building.xml
+++ b/docs/reference/glib/building.xml
@@ -42,6 +42,13 @@
       the standard options.
     </para>
     <para>
+      GLib is compiled with
+      <ulink url="https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-fstrict-aliasing";>strict 
aliasing</ulink>
+      disabled. It is strongly recommended that this is not re-enabled by
+      overriding the compiler flags, as GLib has not been tested with strict
+      aliasing and cannot be guaranteed to work.
+    </para>
+    <para>
       The GTK+ documentation contains
       <ulink url="https://developer.gnome.org/gtk3/stable/gtk-building.html";>further details</ulink>
       about the build process and ways to influence it.


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