From c858cba3e95f820a956f72607c9af494f70b9304 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Thu, 28 Jan 2021 18:42:19 +0900 Subject: Refine `preprocess_options`; ref d95ffb036 If we modify an option that may have been specified by users, we may make unintended changes, so it is better not to modify it as much as possible, IMO. --- tasks/toolchains/openwrt.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tasks/toolchains/openwrt.rake') diff --git a/tasks/toolchains/openwrt.rake b/tasks/toolchains/openwrt.rake index d5763d8de..a903ddd49 100644 --- a/tasks/toolchains/openwrt.rake +++ b/tasks/toolchains/openwrt.rake @@ -11,7 +11,8 @@ MRuby::Toolchain.new(:openwrt) do |conf| end cc.option_include_path = %q[-I"%s"] cc.option_define = '-D%s' - cc.compile_options = %q[%{flags} -MMD -MF "%{outfile}.d" -o "%{outfile}" -c "%{infile}"] + cc.compile_options = '%{flags} -MMD -MF "%{outfile}.d" -o "%{outfile}" -c "%{infile}"' + cc.preprocess_options = '%{flags} -o "%{outfile}" -E -P "%{infile}"' end conf.linker do |linker| -- cgit v1.2.3