Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
12e18192
Commit
12e18192
authored
8 years ago
by
Frederich Munch
Committed by
Axel Naumann
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Lit: Use proper Windows paths for easier copy/paste.
parent
fd176762
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interpreter/cling/test/lit.cfg
+11
-3
11 additions, 3 deletions
interpreter/cling/test/lit.cfg
with
11 additions
and
3 deletions
interpreter/cling/test/lit.cfg
+
11
−
3
View file @
12e18192
...
...
@@ -9,6 +9,14 @@ import re
import
lit.util
import
lit.formats
if
platform.system()
==
'Windows':
# Use real Windows path separators so if a test fails, one can copy/paste cmds
def
fixupPath(path):
return
os.path.normpath(path)
else:
def
fixupPath(path):
return
path
# name: The name of this test suite.
config.name
=
'Cling'
# Tweak PATH for Win32
...
...
@@ -205,7 +213,7 @@ for pattern in [r"\bbugpoint\b(?!-)", r"(?<!/)\bclang\b(?!-)",
if
os.path.exists(substitution_ext):
substitution
=
substitution_ext
break
config.substitutions.append((pattern,
substitution))
config.substitutions.append((pattern,
fixupPath(
substitution))
)
excludes
=
[]
...
...
@@ -237,7 +245,7 @@ def inferCling(PATH):
if
lit_config.useValgrind:
config.target_triple
+=
'-vg'
config.cling
=
inferCling(getattr(config, 'llvm_tools_dir', None))
.replace('
\\
', '/'
)
config.cling
=
fixupPath(
inferCling(getattr(config, 'llvm_tools_dir', None)))
if
not
lit_config.quiet:
lit_config.note('using
cling:
%r'
%
config.cling)
...
...
@@ -247,7 +255,7 @@ if not os.getenv('CLING'):
# Add a substitution for the builds generated include dir before install
incDir
=
os.path.join(config.llvm_obj_root, 'tools', 'clang', 'include')
config.substitutions.append(
('%built_cling',
config.cling
+
'
--nologo
-I%s'
%
os.path.normp
ath(incDir))
)
%
fixupP
ath(incDir))
)
if
not
lit_config.quiet:
lit_config.note('Running
tests
from
build
tree')
else:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment