Travis Snoozy
119e337f4b
Make acprep use "str.split" not "string.split"
...
Python is displeased with acprep if a *FLAGS environment variable is
set. This patch converts the problematic "string.split" statement to
instead be "str.split", which appears to fix the problem.
2013-05-23 09:25:10 -06:00
Javier Santacruz
379bae087e
Improves acprep python3 compatibility
...
Replaces string.join with str.join
Forces conversion to str from byte-returning functions
Introduces usage of 'as' keyword when catching exception instances
Replaces has_key with usage of the 'in' keyword for dictionary key presence checking.
2013-04-27 13:47:07 +02:00
Johann Klähn
90ced87004
fix typos in acprep
2013-04-13 13:10:56 +02:00
John Wiegley
b21ee1de17
Merge branch 'next' of github.com:ledger/ledger into next
2013-01-30 17:01:00 -06:00
John Wiegley
ccca974dad
Use -O3 with Clang instead of -O4
2013-01-30 17:00:22 -06:00
John Wiegley
be7af24250
Upgrade to Boost 1.52
2013-01-30 16:59:42 -06:00
Johann Klähn
20217e7c9c
fix --no-python option
...
This would fail with `ValueError: list.remove(x): x not in list`.
2013-01-30 23:38:11 +01:00
Johann Klähn
9e3652dd4f
acprep: pass options starting with -D to CMake
2013-01-30 23:37:29 +01:00
Johann Klähn
5ee03de0ad
fix option handling in acprep
...
Both the `--local` option and the default to build local if no build
directory exists did not work, because `build_directory()` uses
`self.options.build_dir`, but the default and the `--local` option used
`self.build_dir`.
I changed the code to always use `self.options` for options/flags.
Now `self.options` is set to the default values of OptParser and is
updated when `parse_args` is called in `run`.
After this commit ledger will be built in:
* The directory specified using `--output=`
* Else in a subdirectory of `./build` or `~/Products` if one of those
directories exist and `--local` is not used.
* Else inside the source tree (default).
2013-01-30 23:07:17 +01:00
John Wiegley
dcd64a6782
Added -N/--ninja option to acprep
2012-09-27 17:42:43 -05:00
John Wiegley
a9bd40a1e3
Don't use the ninja build command by default
2012-09-27 17:40:17 -05:00
John Wiegley
300cefd1a7
Changes to support using homebrew and ninja
2012-09-26 12:25:26 -05:00
John Wiegley
7c288b956d
Changes for CMake
2012-09-21 15:12:38 -05:00
Bradley M. Kuhn
5b916dae6c
Correct cmake variable for install prefix is "CMAKE_INSTALL_PREFIX", not "CMAKE_PREFIX_PATH".
...
CMAKE_PREFIX_PATH is for searching for other programs, not for the place
to install this one. Based on acprep's --help, I think the intention was
to use CMAKE_INSTALL_PREFIX here.
2012-09-06 19:25:09 -04:00
John Wiegley
14ab4f7775
Updated to Boost 1.50
2012-07-30 23:24:04 -05:00
John Wiegley
2720f79522
Fix reference to self.options.products_dir
2012-06-11 18:57:17 -05:00
John Wiegley
571d711523
Was missing a period
2012-06-08 15:06:11 -05:00
John Wiegley
b64dcf7202
Change self.prefix_dir -> self.options.prefix_dir
2012-06-07 22:37:38 -05:00
John Wiegley
98df1296fe
Build fixes to acprep and build.sh
2012-05-25 04:13:14 -05:00
John Wiegley
636b878e70
Give a reasonable error if CMake cannot be found
2012-05-23 02:00:02 -05:00
John Wiegley
c404f94d64
Changed the way that LDFLAGS is passed to CMake
2012-05-20 22:45:17 -05:00
John Wiegley
54649d1b7a
Make profiling builds work with Clang
2012-05-20 16:06:32 -05:00
John Wiegley
0c1f40754a
Build gcov mode also for Clang
2012-05-20 15:31:40 -05:00
John Wiegley
1b83c684fb
More resiliency fixes
2012-05-20 14:15:48 -05:00
John Wiegley
a3e84aa155
A few more CMake-related fixes
2012-05-20 05:16:16 -05:00
John Wiegley
4681e58d7f
Converted the Ledger build system to use CMake
2012-05-20 04:48:05 -05:00
John Wiegley
b898d40a81
More configuration fixes
2012-05-10 16:30:32 -05:00
John Wiegley
8c0cb63dfd
Change the way I choose a default compiler
2012-05-10 04:25:18 -05:00
John Wiegley
6a18669aa0
An acprep simplification
2012-05-10 04:11:50 -05:00
John Wiegley
8f895fcda1
Various changes to suit my environment
2012-05-01 13:45:46 -05:00
John Wiegley
c8f58ea686
Added support for building with Clang and libc++ in C++11
2012-04-28 05:23:36 -05:00
John Wiegley
1a45d74543
Don't rsync as much when preparing proof builds
2012-04-28 05:22:20 -05:00
John Wiegley
fcd05632e0
Fixes to the proofing process
2012-04-27 15:48:00 -05:00
John Wiegley
95429c7031
Removed unnecessary code from acprep
2012-04-26 16:38:38 -05:00
John Wiegley
72d1011251
Build-related changes
2012-04-25 03:09:56 -05:00
John Wiegley
6af3f0448f
More support for building with Clang
2012-04-25 03:09:55 -05:00
John Wiegley
adbd99414b
Remove some dead code
2012-04-25 03:09:55 -05:00
John Wiegley
711281472b
Add support for g++ 4.8
2012-04-25 03:09:55 -05:00
John Wiegley
5a9b56f024
Use chmod before removing the proof build directory
2012-04-25 03:09:55 -05:00
John Wiegley
ee641f353c
Resolve some issues with proof builds
2012-04-15 01:17:01 -05:00
John Wiegley
1ad826c2bc
Proof using both GCC and Clang
2012-04-13 15:16:28 -05:00
John Wiegley
86f5f8e520
Set FLAVOR= on all make invocations
2012-04-13 15:16:28 -05:00
John Wiegley
e3ac243019
Started work on a "views" report document model
2012-04-08 05:04:49 -05:00
John Wiegley
08f65eeadc
Allow serialization to be enabled again
2012-03-29 15:35:20 -05:00
John Wiegley
429cfc5c80
Don't use -fomit-frame-pointer when building optimized
...
Makes stack traces impossible
2012-03-15 05:01:39 -05:00
John Wiegley
62c04deb87
Quieted several compiler warnings from Clang
2012-03-11 05:08:55 -05:00
John Wiegley
79a4919777
Fix for optimizing building with Clang
2012-03-07 14:29:52 -06:00
John Wiegley
cabec6db1a
Use Boost 1.49 by default
2012-03-07 02:48:52 -06:00
John Wiegley
a47653d24c
Make sure Python works during proof builds
2012-03-02 02:00:19 -06:00
John Wiegley
7dc1d8c169
Add -Won-disabled-macro-expansion flag when building with Clang
2012-02-17 15:14:31 -06:00