-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GR-47392] Exclude Fortran-related files in the llvm-toolchain in Rub…
…y standalones PullRequest: truffleruby/4021
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |