Update lib/metasploit/framework/compiler/mingw.rb

Review made by @adfoster-r7 and tested by @ARaout

Co-authored-by: adfoster-r7 <60357436+adfoster-r7@users.noreply.github.com>
This commit is contained in:
Professor Araout 2023-06-13 14:59:22 +02:00 committed by GitHub
parent 9d315af25e
commit 0b320f6209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ module Metasploit
cmd << "#{src_file} -I #{INCLUDE_DIR} "
if self.include_dirs
cmd << " #{self.include_dirs} "
end
cmd << "#{self.include_dirs.map { |include_dir| "-iquote #{include_dir}" }.join(' ')} " if self.include_dirs.any?
cmd << "-o #{exe_file} "
# gives each function its own section