[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
201/376: Add Make flag to disable optimization
From: |
Ludovic Courtès |
Subject: |
201/376: Add Make flag to disable optimization |
Date: |
Wed, 28 Jan 2015 22:05:02 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 5a05cf4063fc6ea666f3e24c60bd2e9e5526ef4e
Author: Eelco Dolstra <address@hidden>
Date: Wed Sep 17 17:07:05 2014 +0200
Add Make flag to disable optimization
---
Makefile | 9 ++++++++-
configure.ac | 4 ++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index d6c645f..b41a820 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,15 @@ makefiles = \
doc/manual/local.mk \
tests/local.mk
-GLOBAL_CXXFLAGS += -std=c++0x
+GLOBAL_CXXFLAGS += -std=c++0x -g -Wall
include Makefile.config
+OPTIMIZE = 1
+
+ifeq ($(OPTIMIZE), 1)
+ GLOBAL_CFLAGS += -O3
+ GLOBAL_CXXFLAGS += -O3
+endif
+
include mk/lib.mk
diff --git a/configure.ac b/configure.ac
index 00c1d49..89fd6b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,8 +54,8 @@ if test "$sys_name" = sunos; then
fi
-CFLAGS=${CFLAGS:--g -O3 -Wall}
-CXXFLAGS=${CXXFLAGS:--g -O3 -Wall}
+CFLAGS=
+CXXFLAGS=
AC_PROG_CC
AC_PROG_CXX
- 183/376: Manual build fixes, (continued)
- 183/376: Manual build fixes, Ludovic Courtès, 2015/01/28
- 203/376: Remove unused w3m dependency, Ludovic Courtès, 2015/01/28
- 182/376: Merge branch 'master' of github.com:thatdocslady/nix, Ludovic Courtès, 2015/01/28
- 207/376: Remove debug statement, Ludovic Courtès, 2015/01/28
- 204/376: Install some pkgconfig files, Ludovic Courtès, 2015/01/28
- 206/376: Store.so: Add dependency on libnixutil, Ludovic Courtès, 2015/01/28
- 200/376: Add some instrumentation for debugging GC leaks, Ludovic Courtès, 2015/01/28
- 210/376: Inline Bindings::find(), Ludovic Courtès, 2015/01/28
- 202/376: On Linux, disable address space randomization, Ludovic Courtès, 2015/01/28
- 205/376: Update spec file, Ludovic Courtès, 2015/01/28
- 201/376: Add Make flag to disable optimization,
Ludovic Courtès <=
- 213/376: configure: Force regeneration of Makefile.config, Ludovic Courtès, 2015/01/28
- 212/376: attrNames: Don't allocate duplicates of the symbols, Ludovic Courtès, 2015/01/28
- 216/376: Handle cycles when printing a value, Ludovic Courtès, 2015/01/28
- 211/376: Fix off-by-one, Ludovic Courtès, 2015/01/28
- 215/376: Add ‘seq’ primop, Ludovic Courtès, 2015/01/28
- 209/376: Store Attrs inside Bindings, Ludovic Courtès, 2015/01/28
- 208/376: Remove bogus comment, Ludovic Courtès, 2015/01/28
- 219/376: Add ‘deepSeq’ primop, Ludovic Courtès, 2015/01/28
- 225/376: Pass through --set from nix-install-package command line to nix-env, Ludovic Courtès, 2015/01/28
- 214/376: Add a function ‘valueSize’, Ludovic Courtès, 2015/01/28