Skip to content

Commit f7865e5

Browse files
committed
Updated remove_ext for Linux [skip ci]
1 parent dd7e070 commit f7865e5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/vendor
1010
*.lock
1111
*.bundle
12+
*.so
1213
/examples/gan/data
1314
/examples/gan/images
1415
/examples/mnist/data

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Rake::ExtensionTask.new("torch") do |ext|
1414
end
1515

1616
task :remove_ext do
17-
Dir["lib/torch/ext.bundle", "ext/torch/*_functions.{cpp,hpp}"].each do |path|
18-
File.unlink(path) if File.exist?(path)
17+
Dir["lib/torch/ext.{bundle,so}", "ext/torch/*_functions.{cpp,hpp}"].each do |path|
18+
File.unlink(path)
1919
end
2020
end
2121

0 commit comments

Comments
 (0)