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 | |
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')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 9 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/plugins/builder_base.py | 2 |
2 files changed, 5 insertions, 6 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( diff --git a/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py b/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py index be891da2d08..44695cecf21 100644 --- a/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py +++ b/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py @@ -116,7 +116,7 @@ def getCmdLine(d): pattern = '%s="%s"' if "win32" in sys.platform else "%s='%s'" def setOrAppendVariable(k, v): - append_vars = ["CFLAGS_EXTRAS", "LD_EXTRAS"] + append_vars = ["CFLAGS", "CFLAGS_EXTRAS", "LD_EXTRAS"] if k in append_vars and k in os.environ: v = os.environ[k] + " " + v return pattern % (k, v) |