Skip to content
Closed
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
4 changes: 4 additions & 0 deletions spec/compiler/codegen/target_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ describe Crystal::Codegen::Target do
Target.new("x86_64-unknown-freebsd8.0").freebsd_version.should eq(8)
Target.new("x86_64-unknown-freebsd11.0").freebsd_version.should eq(11)
end

it "#unix?" do
Target.new("aarch64-android").unix?.should be_true
end
end
2 changes: 1 addition & 1 deletion src/compiler/crystal/codegen/target.cr
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class Crystal::Codegen::Target
end

def unix?
macos? || bsd? || linux? || wasi? || solaris?
macos? || bsd? || linux? || wasi? || solaris? || android?
end

def gnu?
Expand Down
Loading