Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/llvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on: [push]

jobs:
build_llvm:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
cmake_args:
- ""
steps:
- name: Setup Windows
if: startsWith(matrix.os, 'windows')
uses: tstellar/actions/setup-windows@master
with:
arch: amd64
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Ninja
uses: tstellar/actions/install-ninja@master
with:
os: ${{ runner.os }}
- name: Test LLVM
uses: tstellar/actions/build-test-llvm-project@master
with:
cmake_args: -G Ninja -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }}
os: ${{ runner.os }}
28 changes: 0 additions & 28 deletions llvm/bindings/go/build.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@
// +build !byollvm

package llvm

var _ run_build_sh
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion llvm/test/Bindings/Go/go.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: llvm-go test llvm.org/llvm/bindings/go/llvm
; RUN: CGO_CPPFLAGS="`llvm-config --cppflags`" CGO_CXXFLAGS=-std=c++14 CGO_LDFLAGS="`llvm-config --ldflags --libs --system-libs all`" go test llvm

; REQUIRES: shell
; UNSUPPORTED: asan, ubsan, msan
3 changes: 2 additions & 1 deletion llvm/test/Bindings/Go/lit.local.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ def fixup_compiler_path(compiler):

config.environment['CC'] = fixup_compiler_path(config.host_cc)
config.environment['CXX'] = fixup_compiler_path(config.host_cxx)
config.environment['CGO_LDFLAGS'] = config.host_ldflags
config.environment['LD_LIBRARY_PATH'] = config.llvm_shlib_dir
config.environment['GOPATH'] = os.path.join(config.llvm_src_root, 'bindings', 'go')
2 changes: 1 addition & 1 deletion llvm/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def get_asan_rtlib():

# The following tools are optional
tools.extend([
ToolSubst('llvm-go', unresolved='ignore'),
ToolSubst('go', unresolved='ignore'),
ToolSubst('llvm-mt', unresolved='ignore'),
ToolSubst('Kaleidoscope-Ch3', unresolved='ignore'),
ToolSubst('Kaleidoscope-Ch4', unresolved='ignore'),
Expand Down
2 changes: 1 addition & 1 deletion llvm/utils/lit/lit/llvm/subst.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def resolve(self, config, dirs):

if self.name == 'llc' and os.environ.get('LLVM_ENABLE_MACHINE_VERIFIER') == '1':
command += ' -verify-machineinstrs'
elif self.name == 'llvm-go':
elif self.name == 'go':
exe = getattr(config.config, 'go_executable', None)
if exe:
command += ' go=' + exe
Expand Down