Commit c2c4d86f authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Print out qsharp build command line in verbose mode

parent ae97dbe9
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