mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-08 18:36:05 +00:00

This patch creates a <test>.dwarf, <test>.dwo, etc., build directory for each testcase variant. Most importantly, this eliminates the need for the per-test lock file in the source directory. Tests that are marked as NO_DEBUG_INFO_TESTCASE and build with buildDefault() are built in a <test>.default build directory. Differential Revision: https://reviews.llvm.org/D42763 llvm-svn: 324368
31 lines
842 B
Python
31 lines
842 B
Python
|
|
from __future__ import print_function
|
|
import os
|
|
import lldbsuite.test.lldbtest as lldbtest
|
|
|
|
from builder_base import *
|
|
|
|
def buildDsym(
|
|
sender=None,
|
|
architecture=None,
|
|
compiler=None,
|
|
dictionary=None,
|
|
clean=True,
|
|
testdir=None,
|
|
testname=None):
|
|
"""Build the binaries with dsym debug info."""
|
|
commands = []
|
|
if clean:
|
|
commands.append(getMake(testdir, testname) +
|
|
["clean", getCmdLine(dictionary)])
|
|
commands.append(getMake(testdir, testname) +
|
|
["MAKE_DSYM=YES",
|
|
getArchSpec(architecture),
|
|
getCCSpec(compiler),
|
|
"all", getCmdLine(dictionary)])
|
|
|
|
runBuildCommands(commands, sender=sender)
|
|
|
|
# True signifies that we can handle building dsym.
|
|
return True
|