Skip to content

Commit

Permalink
[GR-47392] Exclude Fortran-related files in the llvm-toolchain in Rub…
Browse files Browse the repository at this point in the history
…y standalones

PullRequest: truffleruby/4021
  • Loading branch information
eregon committed Oct 3, 2023
2 parents 5178af3 + 50825e6 commit bb05e0b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mx.truffleruby/mx_truffleruby.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def ruby_maven_deploy_public(args):
standalone_dependencies_common = {
'LLVM Runtime Core': ('lib/sulong', []),
'LLVM Runtime Native': ('lib/sulong', []),
'LLVM.org toolchain': ('lib/llvm-toolchain', []),
'LLVM.org toolchain': ('lib/llvm-toolchain', ['bin/flang-*', 'bin/f18*', 'lib/libFortran*', 'include/flang']),
}

mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmLanguage(
Expand Down
21 changes: 21 additions & 0 deletions spec/truffle/standalone_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2023 Oracle and/or its affiliates. All rights reserved. This
# code is released under a tri EPL/GPL/LGPL license. You can use it,
# redistribute it and/or modify it under the terms of the:
#
# Eclipse Public License version 2.0, or
# GNU General Public License version 2, or
# GNU Lesser General Public License version 2.1.
# OTHER DEALINGS IN THE SOFTWARE.

require_relative '../ruby/spec_helper'

describe "The standalone" do
llvm_toolchain = "#{Truffle::Boot.ruby_home}/lib/llvm-toolchain"
guard -> { Dir.exist? llvm_toolchain } do
it "should not include Fortran-related files in the toolchain" do
Dir.glob("#{llvm_toolchain}/bin/flang*").should.empty?
Dir.glob("#{llvm_toolchain}/lib/libFortran*").should.empty?
Dir.glob("#{llvm_toolchain}/include/flang/*").should.empty?
end
end
end

0 comments on commit bb05e0b

Please sign in to comment.