We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6dea344 + 2484966 commit 270cf38Copy full SHA for 270cf38
pygccxml/parser/config.py
@@ -429,7 +429,8 @@ def create_compiler_path(xml_generator, compiler_path):
429
['where', 'cl'],
430
stdout=subprocess.PIPE,
431
stderr=subprocess.PIPE)
432
- compiler_path = p.stdout.read().decode("utf-8").rstrip()
+ # Fix where cl error. In cmake environment there are more then one Visual Studio path are found.
433
+ compiler_path = p.stdout.read().decode("utf-8").rstrip().split("\r\n")[0].rstrip()
434
p.wait()
435
p.stdout.close()
436
p.stderr.close()
0 commit comments