Title: [204279] trunk/Tools
- Revision
- 204279
- Author
- clo...@igalia.com
- Date
- 2016-08-09 03:37:44 -0700 (Tue, 09 Aug 2016)
Log Message
[GTK] Build the jhbuild with -O2 optimization level by default
https://bugs.webkit.org/show_bug.cgi?id=160544
Reviewed by Michael Catanzaro.
* gtk/jhbuildrc: Pass -O2 when building the JHBuild, as also -g1
which don't increases the required disk space significatively and
provides better debug information than no passing it.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (204278 => 204279)
--- trunk/Tools/ChangeLog 2016-08-09 09:11:06 UTC (rev 204278)
+++ trunk/Tools/ChangeLog 2016-08-09 10:37:44 UTC (rev 204279)
@@ -1,3 +1,14 @@
+2016-08-09 Carlos Alberto Lopez Perez <clo...@igalia.com>
+
+ [GTK] Build the jhbuild with -O2 optimization level by default
+ https://bugs.webkit.org/show_bug.cgi?id=160544
+
+ Reviewed by Michael Catanzaro.
+
+ * gtk/jhbuildrc: Pass -O2 when building the JHBuild, as also -g1
+ which don't increases the required disk space significatively and
+ provides better debug information than no passing it.
+
2016-08-09 Csaba Osztrogonác <o...@webkit.org>
Allow more --cmakeargs option in build-jsc and build-webkit
Modified: trunk/Tools/gtk/jhbuildrc (204278 => 204279)
--- trunk/Tools/gtk/jhbuildrc 2016-08-09 09:11:06 UTC (rev 204278)
+++ trunk/Tools/gtk/jhbuildrc 2016-08-09 10:37:44 UTC (rev 204279)
@@ -37,8 +37,12 @@
# For the layout tests: path where llvmpipe/software-only mesa libraries are installed.
os.environ['LLVMPIPE_LIBGL_PATH'] = os.path.abspath(os.path.join(prefix, 'softGL', 'lib'))
-os.environ['CFLAGS'] = '-Wno-error'
-os.environ['CXXFLAGS'] = '-Wno-error'
-
-# For building gstreamer plugins on the Mac.
-os.environ['OBJCFLAGS'] = '-Wno-error'
+# We only want to export this when bulding the JHBuild, but not when building WebKit.
+# When the build-webkit script is used, we end executing 'jhbuild [...] run cmake [...]'.
+# But when the JHBuild gets built, we end executing 'jhbuild [...] build'.
+# So we can know if we are building the JHBuild by checking that 'run' is not an argument.
+if 'run' not in sys.argv:
+ os.environ['CFLAGS'] = '-Wno-error -O2 -g1'
+ os.environ['CXXFLAGS'] = '-Wno-error -O2 -g1'
+ # For building gstreamer plugins on the Mac.
+ os.environ['OBJCFLAGS'] = '-Wno-error -O2 -g1'
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes