aboutsummaryrefslogtreecommitdiff
path: root/works/life/lanqiao-selection-match/cpp-build.rb
blob: 2786bed48fca5d7f9ec407eadd7f064fa2b6d8b1 (plain)
1
2
3
4
5
6
#!/usr/bin/env ruby

Dir.glob('./codes/*.cpp').each do |f|
  output_file_name = f.sub('codes', 'build').gsub('.cpp', '')
  `clang++ -std=c++11 #{f} -o #{output_file_name}`
end