[PATCH] D69725: [dexter] Fix feature tests on Windows

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 10:57:10 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rG63f49465c326: [dexter] Fix feature tests on Windows (authored by rnk).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69725/new/

https://reviews.llvm.org/D69725

Files:
  debuginfo-tests/CMakeLists.txt
  debuginfo-tests/dexter/dex/builder/Builder.py
  debuginfo-tests/dexter/dex/builder/scripts/windows/clang.bat


Index: debuginfo-tests/dexter/dex/builder/scripts/windows/clang.bat
===================================================================
--- debuginfo-tests/dexter/dex/builder/scripts/windows/clang.bat
+++ debuginfo-tests/dexter/dex/builder/scripts/windows/clang.bat
@@ -1,4 +1,4 @@
-setlocal EnableDelayedExpansion
+ at setlocal EnableDelayedExpansion
 
 for %%I in (%SOURCE_INDEXES%) do (
   %PATHTOCLANGPP% -fuse-ld=lld -c !COMPILER_OPTIONS_%%I! !SOURCE_FILE_%%I! -o !OBJECT_FILE_%%I!
Index: debuginfo-tests/dexter/dex/builder/Builder.py
===================================================================
--- debuginfo-tests/dexter/dex/builder/Builder.py
+++ debuginfo-tests/dexter/dex/builder/Builder.py
@@ -80,12 +80,14 @@
                 stderr=subprocess.PIPE)
             out, err = process.communicate()
             returncode = process.returncode
+        out = out.decode('utf-8')
+        err = err.decode('utf-8')
         if returncode != 0:
             raise BuildScriptException(
                 '{}: failed with returncode {}.\nstdout:\n{}\n\nstderr:\n{}\n'.
                 format(script_path, returncode, out, err),
                 script_error=err)
-        return out.decode('utf-8'), err.decode('utf-8'), builderIR
+        return out, err, builderIR
     except OSError as e:
         raise BuildScriptException('{}: {}'.format(e.strerror, script_path))
 
Index: debuginfo-tests/CMakeLists.txt
===================================================================
--- debuginfo-tests/CMakeLists.txt
+++ debuginfo-tests/CMakeLists.txt
@@ -13,6 +13,11 @@
   not
   )
 
+# The Windows builder scripts pass -fuse-ld=lld.
+if (WIN32)
+  set(DEBUGINFO_TEST_DEPS ${DEBUGINFO_TEST_DEPS} lld)
+endif()
+
 # If we don't already have Python 3, throw away any previous results and try to
 # find it again.
 set(DEBUGINFO_UNSET_PYTHON3 OFF)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69725.227926.patch
Type: text/x-patch
Size: 1853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191105/b05d08ed/attachment.bin>


More information about the llvm-commits mailing list