mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 03:44:59 +00:00
test/lit.cfg: Enable the feature 'asserts' to check output of llc -version.
llc knows whether he is compiled with -DNDEBUG. | Optimized build with assertions. llvm-svn: 145230
This commit is contained in:
parent
b11f5a4cbb
commit
8284ec46b6
@ -283,5 +283,10 @@ else:
|
||||
if loadable_module:
|
||||
config.available_features.add('loadable_module')
|
||||
|
||||
if config.enable_assertions:
|
||||
# llc knows whether he is compiled with -DNDEBUG.
|
||||
import subprocess
|
||||
llc_cmd = subprocess.Popen([os.path.join(llvm_tools_dir, 'llc'), '-version'],
|
||||
stdout = subprocess.PIPE)
|
||||
if re.search(r'with assertions', llc_cmd.stdout.read()):
|
||||
config.available_features.add('asserts')
|
||||
llc_cmd.wait()
|
||||
|
Loading…
Reference in New Issue
Block a user