[PATCH] D103199: Add flang-x86_64-windows builder.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 12:58:27 PDT 2021


Meinersbur created this revision.
Meinersbur added a reviewer: gkistanova.
Meinersbur added projects: Flang, Zorg.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
Meinersbur requested review of this revision.

Add a buildbot to compile flang using msvc. Due to msvc doing some things differently than other compilers, the msvc flang build breaks regularly. This builder will notify committers if their change causes the build to break.

However, the tests never completed successfully on Windows, partially because many tests require a UNIX shell (see D89368 <https://reviews.llvm.org/D89368>). To not constantly fail, tests failures only trigger a warning, until all tests are fixed as well.

Currently running here: http://meinersbur.de:8011/#/builders/146


Repository:
  rZORG LLVM Github Zorg

https://reviews.llvm.org/D103199

Files:
  buildbot/osuosl/master/config/builders.py
  buildbot/osuosl/master/config/workers.py
  zorg/buildbot/builders/UnifiedTreeBuilder.py


Index: zorg/buildbot/builders/UnifiedTreeBuilder.py
===================================================================
--- zorg/buildbot/builders/UnifiedTreeBuilder.py
+++ zorg/buildbot/builders/UnifiedTreeBuilder.py
@@ -179,6 +179,7 @@
            install_dir = None,
            env = None,
            stage_name = None,
+           allow_test_fail = False,
            **kwargs):
 
     if obj_dir is None:
@@ -224,6 +225,8 @@
                                    "Test", "just", "built", "components", "for",
                                    check,
                                  ],
+                                 haltOnFailure=False,
+                                 flunkOnFailure=not allow_test_fail,
                                  env=check_env,
                                  workdir=obj_dir,
                                  **kwargs # Pass through all the extra arguments.
@@ -283,6 +286,7 @@
            clean = False,
            extra_configure_args = None,
            env = None,
+           allow_test_fail = False,
            **kwargs):
 
     # Make a local copy of the configure args, as we are going to modify that.
@@ -325,6 +329,7 @@
            checks=checks,
            install_dir=f.install_dir,
            env=merged_env,
+           allow_test_fail=allow_test_fail,
            **kwargs)
 
     return f
Index: buildbot/osuosl/master/config/workers.py
===================================================================
--- buildbot/osuosl/master/config/workers.py
+++ buildbot/osuosl/master/config/workers.py
@@ -227,6 +227,9 @@
         # Ubuntu 18.04.LTS x86_64, Intel(R) Xeon(R) CPU X3460 @ 2.80GHz, 32 GiB RAM
         create_worker("polly-x86_64-fdcserver", properties={'jobs': 8, 'loadaverage': 8}, max_builds=1),
 
+        # Windows 10, AMD Ryzen 5 PRO 4650G, 16 GiB RAM
+        create_worker("minipc-ryzen-win", properties={'jobs': 12}, max_builds=1),
+
         # Ubuntu 20.04.LTS x86_64, Intel(R) Core(TM) i5-9400F CPU @ 2.90Ghz, 16 GiB RAM, NVIDIA GeForce GTX 1050 Ti (Pascal, sm_61, 4GiB)
         create_worker("minipc-1050ti-linux", properties={'jobs': 6}, max_builds=1),
 
Index: buildbot/osuosl/master/config/builders.py
===================================================================
--- buildbot/osuosl/master/config/builders.py
+++ buildbot/osuosl/master/config/builders.py
@@ -1615,6 +1615,28 @@
                         'LD': 'lld'
                     })},
 
+    {'name' : "flang-x86_64-windows",
+    'tags'  : ["flang"],
+    'workernames' : ["minipc-ryzen-win"],
+    'builddir': "flang-x86_64-windows",
+    'factory' : UnifiedTreeBuilder.getCmakeWithNinjaBuildFactory(
+                    clean=False,
+                    depends_on_projects=['llvm','mlir','clang','flang'],
+                    checks=['check-flang'],
+                    allow_test_fail=True,
+                    install_dir="flang.install",
+                    extra_configure_args=[
+                        "-DCLANG_ENABLE_STATIC_ANALYZER=OFF",
+                        "-DCLANG_ENABLE_ARCMT=OFF",
+                        "-DCLANG_ENABLE_OBJC_REWRITER=OFF",
+                        "-DLLVM_TARGETS_TO_BUILD=X86",
+                        "-DLLVM_INSTALL_UTILS=ON",
+                        "-DCMAKE_C_COMPILER=cl",
+                        "-DCMAKE_CXX_COMPILER=cl",
+                        "-DCMAKE_CXX_STANDARD=17",
+                        '-DLLVM_PARALLEL_COMPILE_JOBS=4',
+                    ])},
+
 # Builders responsible building Sphinix documentation.
 
     {'name' : "llvm-sphinx-docs",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103199.348055.patch
Type: text/x-patch
Size: 3562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210526/6a51cf3b/attachment.bin>


More information about the llvm-commits mailing list