Skip to content

Commit

Permalink
Drop -O2 and print result
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jul 2, 2024
1 parent 2a4c027 commit 9176323
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contrib/devtools/test-security-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ def call_security_check(cc: str, source: str, executable: str, options) -> tuple
print('=========================================================================================')
print(f'cc is {cc}')
print(f'env_flags are {ef}')
new_ef = [ '-O2', *ef]
new_ef = [*ef]
print(f'env_flags are {new_ef}')
print(f'options are {options}')
print('=========================================================================================')
subprocess.run([*cc,source,'-o',executable] + new_ef + options, check=True)
p = subprocess.run([os.path.join(os.path.dirname(__file__), 'security-check.py'), executable], stdout=subprocess.PIPE, text=True)
return (p.returncode, p.stdout.rstrip())
result = p.stdout.rstrip()
print(f'result is {result}')
return (p.returncode, result)

def get_arch(cc, source, executable):
subprocess.run([*cc, source, '-o', executable] + env_flags(), check=True)
Expand Down

0 comments on commit 9176323

Please sign in to comment.