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/openwrt.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/openwrt.rake')
| -rw-r--r-- | tasks/toolchains/openwrt.rake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tasks/toolchains/openwrt.rake b/tasks/toolchains/openwrt.rake index aeb6dbcbc..c376d96ec 100644 --- a/tasks/toolchains/openwrt.rake +++ b/tasks/toolchains/openwrt.rake @@ -5,18 +5,18 @@ MRuby::Toolchain.new(:openwrt) do |conf| cc.command = ENV['TARGET_CC'] cc.flags = ENV['TARGET_CFLAGS'] cc.include_paths = ["#{MRUBY_ROOT}/include"] - cc.option_include_path = '-I%s' + cc.option_include_path = %q[-I"%s"] cc.option_define = '-D%s' - cc.compile_options = '%{flags} -MMD -o %{outfile} -c %{infile}' + cc.compile_options = %q[%{flags} -MMD -o "%{outfile}" -c "%{infile}"] end [conf.cxx].each do |cxx| cxx.command = ENV['TARGET_CXX'] cxx.flags = ENV['TARGET_CXXFLAGS'] cxx.include_paths = ["#{MRUBY_ROOT}/include"] - cxx.option_include_path = '-I%s' + cxx.option_include_path = %q[-I"%s"] cxx.option_define = '-D%s' - cxx.compile_options = '%{flags} -MMD -o %{outfile} -c %{infile}' + cxx.compile_options = %q[%{flags} -MMD -o "%{outfile}" -c "%{infile}"] end conf.linker do |linker| @@ -26,11 +26,11 @@ MRuby::Toolchain.new(:openwrt) do |conf| 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.archiver do |archiver| archiver.command = ENV['TARGET_AR'] - archiver.archive_options = 'rs %{outfile} %{objs}' + archiver.archive_options = 'rs "%{outfile}" %{objs}' end end |
