diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-20 23:56:32 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-20 23:56:32 +0000 |
commit | 625ab43318a9816ee26312a3f640d84740da7096 (patch) | |
tree | 8ea6a9db9764315517f0813b0141cf4f005a7760 /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | 6fa300aa1e602136046198ae8bb076d2e577cec8 (diff) | |
download | bcm5719-llvm-625ab43318a9816ee26312a3f640d84740da7096.tar.gz bcm5719-llvm-625ab43318a9816ee26312a3f640d84740da7096.zip |
[dotest] Don't set the DWARF version override in CFLAGS_EXTRA.
We cannot override the DWARF version in the CFLAGS_EXTRA because they
are used by tests that explicitly build without debug info. Instead, we
pass them through the regular CFLAGS.
llvm-svn: 369477
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 7593c0da4aa..5eb8bd54f59 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -342,15 +342,14 @@ def parseOptionsAndInitTestdirs(): configuration.skipCategories += test_categories.validate( args.skipCategories, False) - cflags_extras = "" if args.E: - cflags_extras += args.E + os.environ['CFLAGS_EXTRAS'] = args.E if args.dwarf_version: configuration.dwarf_version = args.dwarf_version - cflags_extras += '-gdwarf-{}'.format(args.dwarf_version) - - os.environ['CFLAGS_EXTRAS'] = cflags_extras + # We cannot modify CFLAGS_EXTRAS because they're used in test cases + # that explicitly require no debug info. + os.environ['CFLAGS'] = '-gdwarf-{}'.format(configuration.dwarf_version) if args.d: sys.stdout.write( |