Skip to content
Snippets Groups Projects
  • Michal Sojka's avatar
    202ae4cc
    build: Pass -iremap gcc option as a single argument · 202ae4cc
    Michal Sojka authored
    
    Passing -iremap argument separately causes problems with projects that
    use scons and its ParseFlags function. Consider this SConscript
    example:
    
        env = Environment()
        d = env.ParseFlags("-iremap one:two")
    
    ParseFlags will interpret one:two as a file name and the returned dict
    d will contain only "-iremap". When the -iremap is passed to the
    compiler without an argument, compilation obviously fails.
    
    Signed-off-by: default avatarMichal Sojka <sojkam1@fel.cvut.cz>
    202ae4cc
    History
    build: Pass -iremap gcc option as a single argument
    Michal Sojka authored
    
    Passing -iremap argument separately causes problems with projects that
    use scons and its ParseFlags function. Consider this SConscript
    example:
    
        env = Environment()
        d = env.ParseFlags("-iremap one:two")
    
    ParseFlags will interpret one:two as a file name and the returned dict
    d will contain only "-iremap". When the -iremap is passed to the
    compiler without an argument, compilation obviously fails.
    
    Signed-off-by: default avatarMichal Sojka <sojkam1@fel.cvut.cz>