Unverified Commit f161da00 authored by Mccaskey, Alex's avatar Mccaskey, Alex Committed by GitHub
Browse files

Merge pull request #183 from tnguyen-ornl/tnguyen/qsharp-driver-update

Print out qsharp build command line in verbose mode
parents ae97dbe9 c2c4d86f
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -570,8 +570,12 @@ def main(argv=None):
            sys.argv.remove('-qs-runtime')

        # Execute qsc build command:
        if verbose:
            print('[qcor-exec]: ', build_cmd)
        os.system(build_cmd)
        llvm_bin_path = str(pathlib.Path(compiler).parent)
        if verbose:
            print('[qcor-exec]: ', '{}'.format(' '.join([llvm_bin_path+'/llc', '-filetype=obj', bc_file_name ])))
        result = subprocess.run([llvm_bin_path+'/llc', '-filetype=obj', bc_file_name ], check=True)
        sys.argv.remove(filename)
        fileType = None