[cmake-developers] [CMake 0014917]: CMake does nor create response file for Ninja

Mantis Bug Tracker mantis at public.kitware.com
Thu May 15 12:02:25 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14917 
====================================================================== 
Reported By:                Andreas Boerner
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14917
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-05-15 10:02 MDT
Last Modified:              2014-05-15 10:02 MDT
====================================================================== 
Summary:                    CMake does nor create response file for Ninja
Description: 
On a larger project, (cmake -G Ninja) the arguments get too long for Ninja or
Linux to handle.
(That's usually the link command).
Linking aborts because of error command line too long

Steps to Reproduce: 
happens always if link command is long enough

Additional Information: 
I have a work-around for this:

ninjaFix.lex:

%%
CXX_EXECUTABLE_LINKER   printf("%s_RSP_FILE", yytext);
TARGET_PDB.+            printf("%s/n  RSP_FILE = rsp.txt\n", yytext);
 

flex ninjaFix.lex
gcc -o fix lex.yy.c -lfl

and then I do after cmake -G Ninja:

mv build.ninja build.ninja.in
fix < build.ninja.in > build.ninja

and then I can call ninja -j 20 without an error.


Would be great if this fix could be integrated into the Ninja generator of cmake
!




====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-05-15 10:02 Andreas BoernerNew Issue                                    
======================================================================



More information about the cmake-developers mailing list