summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-20 16:06:32 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-05-20 16:06:32 -0500
commit54649d1b7a6e7168a89ef34b812b90400f4fa225 (patch)
tree658f332cc626e71a6bc572d1033ef529a20f805d /acprep
parenta916ed87bc18476cb8efdcdc703ada98793d09e1 (diff)
downloadfork-ledger-54649d1b7a6e7168a89ef34b812b90400f4fa225.tar.gz
fork-ledger-54649d1b7a6e7168a89ef34b812b90400f4fa225.tar.bz2
fork-ledger-54649d1b7a6e7168a89ef34b812b90400f4fa225.zip
Make profiling builds work with Clang
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep25
1 files changed, 20 insertions, 5 deletions
diff --git a/acprep b/acprep
index 8f52b88e..7439b0f8 100755
--- a/acprep
+++ b/acprep
@@ -739,9 +739,15 @@ class PrepareBuild(CommandLineApp):
# else branch inside assert statements.
self.configure_args.append('-DBUILD_DEBUG=1')
self.configure_args.append('-DNO_ASSERTS=1')
+ self.configure_args.append('-DCLANG_GCOV=1')
self.CXXFLAGS.append('-fprofile-arcs')
self.CXXFLAGS.append('-ftest-coverage')
+ self.LDFLAGS.append('-fprofile-arcs')
+ self.LDFLAGS.append('-ftest-coverage')
+
+ if not self.options.compiler or self.options.compiler == "clang-3.1":
+ self.LDFLAGS.append('-lprofile_rt')
def setup_flavor_gprof(self):
self.configure_args.append('-DBUILD_DEBUG=1')
@@ -847,6 +853,9 @@ class PrepareBuild(CommandLineApp):
make_args.append('-j%d' % self.options.jobs)
make_args.append('ARGS=-j%d' % self.options.jobs)
+ if self.options.verbose:
+ make_args.append('VERBOSE=1')
+
self.log.debug('Configure arguments => ' + str(config_args))
self.log.debug('Makefile arguments => ' + str(make_args))
@@ -935,20 +944,26 @@ class PrepareBuild(CommandLineApp):
self.configure_flavor('opt', reset=False)
self.log.info('=== Testing opt ===')
- self.phase_make('fullcheck')
+ # jww (2012-05-20): Can't use fullcheck yet
+ #self.phase_make('fullcheck')
+ self.phase_make('test')
self.configure_flavor('gcov', reset=False)
self.log.info('=== Testing gcov ===')
- self.phase_make('check')
+ #self.phase_make('check')
+ self.phase_make('test')
self.configure_flavor('debug', reset=False)
self.log.info('=== Testing debug ===')
- self.phase_make('fullcheck')
+ #self.phase_make('fullcheck')
+ self.phase_make('test')
self.configure_flavor('default', reset=False)
self.log.info('=== Testing default ===')
- self.phase_make('fullcheck')
- self.phase_make('docs')
+ #self.phase_make('fullcheck')
+ self.phase_make('test')
+ # jww (2012-05-20): docs are not working yet
+ #self.phase_make('docs')
def phase_makeall(self, reset=False, *args):
self.log.info('Executing phase: makeall')