Add compile_commands.json for ccls.
[libsub.git] / cscript
diff --git a/cscript b/cscript
index 0d77e365832f973a9b4c73b6d98e9d17c04fab6a..4d9d01709585334cecc14a657402a2a9fe1159ea 100644 (file)
--- a/cscript
+++ b/cscript
@@ -20,7 +20,7 @@
 import os
 
 def dependencies(target):
-    return (('asdcplib-cth', 'd8490c6'), ('libcxml', '0d18df4'), ('libdcp', None))
+    return (('asdcplib', 'carl'), ('libcxml', '0d18df4'), ('libdcp', None))
 
 def build(target, options):
     cmd = './waf configure --prefix=%s' % target.directory
@@ -42,6 +42,9 @@ def build(target, options):
     if target.platform == 'windows':
         cmd += ' --target-windows --disable-tests'
 
+    if options is not None and 'force-cpp11' in options and options['force-cpp11']:
+        cmd += ' --force-cpp11'
+
     target.command(cmd)
     target.command('./waf build install')