From e07372ff5077e60136451733dab59e46f3e9132d Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 25 Jul 2012 10:51:44 +0200 Subject: fix host vs. makefile directory separator mess the system path separator and shell are bound to the host system (system() will use cmd even on mingw with sh.exe in path). the makefiles otoh may depend on what the qmakespec defines. consequently, add $$system_path() and $$system_quote() (for use with system() & $$system()). $$native_path() is renamed to $$shell_path() and should be used with $$shell_quote() to produce command lines in makefiles. $$QMAKE_DIR_SEP needs to be applied to Option::dir_sep right after parsing the spec, so it is available to $$shell_{path,quote}(). Change-Id: If3db4849e7f96068cf03a32348a24f3a72d6292c Reviewed-by: Rafael Roquetto Reviewed-by: Sean Harmer --- qmake/option.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'qmake/option.cpp') diff --git a/qmake/option.cpp b/qmake/option.cpp index b01b4eded5..3bfec96087 100644 --- a/qmake/option.cpp +++ b/qmake/option.cpp @@ -555,7 +555,6 @@ bool Option::postProcessProject(QMakeProject *project) Option::h_moc_mod = project->first("QMAKE_H_MOD_MOC"); Option::lex_mod = project->first("QMAKE_MOD_LEX"); Option::yacc_mod = project->first("QMAKE_MOD_YACC"); - Option::dir_sep = project->first("QMAKE_DIR_SEP"); if (Option::output_dir.startsWith(project->buildRoot())) Option::mkfile::cachefile_depth = -- cgit v1.2.3