diff options
| author | Dominic Sisneros <[email protected]> | 2020-04-01 11:55:35 -0600 |
|---|---|---|
| committer | Dominic Sisneros <[email protected]> | 2020-04-01 11:55:35 -0600 |
| commit | e3875ae8c5a9cd8ebef7fa4775698bf85d7c8eb9 (patch) | |
| tree | 43199871ab16f12be182bb6d06311f07b7cf4e8d /tasks/toolchains/gcc.rake | |
| parent | 5acd802d2be19872b703d6c9876aa61a262c6c8c (diff) | |
| download | mruby-e3875ae8c5a9cd8ebef7fa4775698bf85d7c8eb9.tar.gz mruby-e3875ae8c5a9cd8ebef7fa4775698bf85d7c8eb9.zip | |
build when directories and files have spaces
Modified the build to quote filenames so that it builds when files have spaces
Diffstat (limited to 'tasks/toolchains/gcc.rake')
| -rw-r--r-- | tasks/toolchains/gcc.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake index e9ea2550c..810f23b7a 100644 --- a/tasks/toolchains/gcc.rake +++ b/tasks/toolchains/gcc.rake @@ -12,9 +12,9 @@ MRuby::Toolchain.new(:gcc) do |conf, params| compiler.command = ENV['CC'] || default_command compiler.flags = [c_mandatory_flags, ENV['CFLAGS'] || [compiler_flags, cxx_invalid_flags, %w(-Wwrite-strings)]] end - compiler.option_include_path = '-I%s' + compiler.option_include_path = %q[-I"%s"] compiler.option_define = '-D%s' - compiler.compile_options = '%{flags} -MMD -o %{outfile} -c %{infile}' + compiler.compile_options = %q[%{flags} -MMD -o "%{outfile}" -c "%{infile}"] compiler.cxx_compile_flag = '-x c++ -std=gnu++03' compiler.cxx_exception_flag = '-fexceptions' compiler.cxx_invalid_flags = c_mandatory_flags + cxx_invalid_flags @@ -27,7 +27,7 @@ MRuby::Toolchain.new(:gcc) do |conf, params| linker.library_paths = [] linker.option_library = '-l%s' linker.option_library_path = '-L%s' - linker.link_options = '%{flags} -o %{outfile} %{objs} %{flags_before_libraries} %{libs} %{flags_after_libraries}' + linker.link_options = '%{flags} -o "%{outfile}" %{objs} %{flags_before_libraries} %{libs} %{flags_after_libraries}' end [[conf.cc, 'c'], [conf.cxx, 'c++']].each do |cc, lang| |
