Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0431dbd

Browse filesBrowse files
committed
Update automate.py
1 parent a5edec9 commit 0431dbd
Copy full SHA for 0431dbd

File tree

Expand file treeCollapse file tree

1 file changed

+9
-12
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-12
lines changed
Open diff view settings
Collapse file

‎tools/automate.py‎

Copy file name to clipboardExpand all lines: tools/automate.py
+9-12Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -577,15 +577,15 @@ def fix_cmake_variables_for_MD_library(undo=False, try_undo=False):
577577
# This replacements must be unique for the undo operation
578578
# to be reliable.
579579

580-
mt_find = r'CEF_RUNTIME_LIBRARY_FLAG "/MT"'
581-
mt_replace = r'CEF_RUNTIME_LIBRARY_FLAG "/MD"'
580+
mt_find = u'CEF_RUNTIME_LIBRARY_FLAG "/MT"'
581+
mt_replace = u'CEF_RUNTIME_LIBRARY_FLAG "/MD"'
582582

583-
wd4275_find = ('/wd4244 '
584-
'# Ignore "conversion possible loss of data" warning')
585-
wd4275_replace = ('/wd4244 '
586-
'# Ignore "conversion possible loss of data" warning'
587-
'\r\n'
588-
' /wd4275 # Ignore "non dll-interface class"')
583+
wd4275_find = (u'/wd4244 '
584+
u'# Ignore "conversion possible loss of data" warning')
585+
wd4275_replace = (u'/wd4244 '
586+
u'# Ignore "conversion possible loss of data" warning'
587+
u'\r\n'
588+
u' /wd4275 # Ignore "non dll-interface class"')
589589

590590
cmake_variables = os.path.join(Options.cef_binary, "cmake",
591591
"cef_variables.cmake")
@@ -996,13 +996,10 @@ def run_automate_git():
996996
# later in cef_binary/ with cmake/ninja do works fine.
997997
args.append("--build-target=cefsimple")
998998

999-
# On Windows automate-git.py must be run using Python 2.7
1000-
# from depot_tools. depot_tools should already be added to PATH.
1001-
python = "python" # *do not* replace with sys.executable!
1002999
args = " ".join(args)
10031000
command = script + " " + args
10041001
working_dir = Options.cef_build_dir
1005-
return run_command("%s %s" % (python, command), working_dir)
1002+
return run_command("%s %s" % (sys.executable, command), working_dir)
10061003

10071004

10081005
def run_make_distrib():

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.