Commit b46bb64d by Dan Committed by Wenzel Jakob

Allow user to override default values of -x and -std=.

parent 4612db54
...@@ -225,8 +225,12 @@ class ExtractionThread(Thread): ...@@ -225,8 +225,12 @@ class ExtractionThread(Thread):
job_semaphore.release() job_semaphore.release()
if __name__ == '__main__': if __name__ == '__main__':
parameters = ['-x', 'c++', '-std=c++11'] parameters = []
filenames = [] filenames = []
if "-x" not in args:
parameters.extend(['-x', 'c++'])
if not any(it.startswith("-std=") for it in args):
parameters.append('-std=c++11')
if platform.system() == 'Darwin': if platform.system() == 'Darwin':
dev_path = '/Applications/Xcode.app/Contents/Developer/' dev_path = '/Applications/Xcode.app/Contents/Developer/'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment