Commit Graph

32 Commits

Author SHA1 Message Date
Fangrui Song
60febe6e9d [waf] Add --variant={debug,release} (#129)
./waf build => build/app
./waf build --variant=debug => build/debug/app
./waf build --variant=release => build/release/app

TODO Make --variant default to 'release', rename `app` to `bin/cquery`, and disallow empty variant
2017-12-11 20:36:53 -08:00
Jacob Dufault
07c0ae109e Fix waf build 2017-12-05 00:05:08 -08:00
Fangrui Song
3ca2d0f2ad waf configure --bundled-clang=5.0.0 to use prebuilt clang+llvm 5.0.0, fixes #41 2017-11-29 11:12:45 -08:00
Jacob Dufault
7923b5d219 Revert "Upgrade bundled clang+llvm to 5.0.0, fixes #41"
This reverts commit 162c4e8198bbae2a1ef52b764a365d7b92b8f81e.
2017-11-27 08:40:06 -08:00
Fangrui Song
7df44f75a7 Upgrade bundled clang+llvm to 5.0.0, fixes #41 2017-11-27 11:13:32 -05:00
Fangrui Song
8aaffb7031 Set rpath if not --use_system_clang 2017-11-26 15:15:05 -05:00
xbreak
972a6359da Added waf options to use clang from system (fixes #36): (#64)
- `--use-system-clang` enables use of system clang.
 - `--llvm-config=LLVM_CONFIG` specifies which llvm-config to use.
 - `--clang-prefix=CLANG_PREFIX` specifies the clang prefix to use as
   a fallback if llvm-config is not available.
2017-11-26 12:13:43 -05:00
Fangrui Song
7d06ff212f Use -Wno-sign-compare to make recent GCC happy 2017-11-22 10:42:04 -05:00
DaanDeMeyer
030e63f15c Remove whitespace before shebang in wscript
This makes the python extension in vscode recognize it as a python file
2017-11-20 17:14:24 -05:00
Daan De Meyer
424c7b69db Fix wscript to support both Python 2 and Python 3. 2017-11-19 13:03:40 -05:00
Jacob Dufault
544818bdd4 waf: Only compile cc files in src/ 2017-11-18 09:27:09 -08:00
Jacob Dufault
c5651a1dbf Revert to clang4 2017-09-25 14:32:45 -07:00
Jacob Dufault
104cfd167c Fix linux build 2017-09-13 10:53:13 -07:00
Jacob Dufault
9336143333 Update to libclang 5.0.0 2017-09-12 22:29:49 -07:00
Jacob Dufault
e771f05f3f Linux build fixes 2017-07-29 21:46:21 -07:00
James Cook
5b4986f04b Fix compiler warnings and turn on warnings as errors 2017-06-19 18:30:44 -07:00
Jacob Dufault
53efee70e4 Only build files under src/ 2017-06-07 18:09:41 -07:00
Jacob Dufault
640ce7bd85 Some WIP changes on wscript to download libcxx 2017-05-13 14:35:02 -07:00
Jacob Dufault
e13d161c62 Experimental support for emitting compile_commands.json from waf 2017-04-25 19:57:36 -07:00
Jacob Dufault
bc838822a5 Fix compile under waf and pass modified settings to extension 2017-04-19 10:06:39 -07:00
Jacob Dufault
8f1e517c0a Small tweaks 2017-04-14 15:30:33 -07:00
Jacob Dufault
f158f759b1 more portable wscript 2017-04-11 09:57:51 -07:00
Jacob Dufault
22cc140d80 use sparsehash 2017-04-07 18:35:12 -07:00
Jacob Dufault
2a3ee89349 wip 2017-03-29 10:12:00 -07:00
Jacob Dufault
9ac960109f wip 2017-03-27 19:35:27 -07:00
Jacob Dufault
a8a343420b misc-linux-fixes 2017-03-27 18:04:37 -07:00
Jacob Dufault
539c779606 fix some warnings 2017-03-24 17:40:01 -07:00
Jacob Dufault
b7c9f55e51 easy building on linux/mac 2017-03-16 19:56:23 -07:00
Jacob Dufault
82d6249358 rpath 2017-03-16 18:40:01 -07:00
Jacob Dufault
2a08552265 linux platform WIP 2017-03-03 17:45:20 -08:00
Jacob Dufault
18aa28bdea building 2017-02-26 18:03:14 -08:00
Jacob Dufault
bc8daee065 initial build system 2017-02-26 14:59:22 -08:00