mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Allow user to override default values of -x and -std=.
This commit is contained in:
parent
4612db54ac
commit
b46bb64d39
@ -225,8 +225,12 @@ class ExtractionThread(Thread):
|
||||
job_semaphore.release()
|
||||
|
||||
if __name__ == '__main__':
|
||||
parameters = ['-x', 'c++', '-std=c++11']
|
||||
parameters = []
|
||||
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':
|
||||
dev_path = '/Applications/Xcode.app/Contents/Developer/'
|
||||
|
Loading…
Reference in New Issue
Block a user