Ignore:
Timestamp:
Apr 6, 2008, 8:07:40 PM (16 years ago)
Author:
dai_9181
Message:

構成管理を大幅に改良。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ProjectEditor/ProjectEditor.cpp

    r475 r477  
    8989
    9090
    91 void CreateProcessWithStdHandle( const char *appPath, const char *cmdLine)
     91void CreateProcessWithStdHandle( const std::string &appPath, const std::string &cmdLine)
    9292{
    9393    std::string argsStr = (std::string)"\"" + appPath + "\" " + cmdLine;
     
    20822082                    lstrcat(temporary,temp2);
    20832083
    2084                     sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName);
    2085 
    2086                     CreateProcessWithStdHandle( str, temporary );
     2084                    CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary );
    20872085
    20882086                    return 0;
     
    21342132                    lstrcat(temporary,temp2);
    21352133
    2136                     sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName);
    2137 
    2138                     CreateProcessWithStdHandle( str, temporary );
     2134                    CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary );
    21392135
    21402136                    return 0;
     
    21672163                    lstrcat(temporary,temp2);
    21682164
     2165                    ActiveBasic::Common::Platform::EnumType platform;
    21692166                    if(dwPlatform==IMAGE_FILE_MACHINE_I386)
    2170                         sprintf(str,"%s%s",pj_editor_Dir,WIN32_COMPILER_NAME);
     2167                    {
     2168                        platform = ActiveBasic::Common::Platform::X86;
     2169                    }
    21712170                    else if(dwPlatform==IMAGE_FILE_MACHINE_AMD64)
    2172                         sprintf(str,"%s%s",pj_editor_Dir,WIN64_COMPILER_NAME);
    2173 
    2174                     CreateProcessWithStdHandle( str, temporary );
     2171                    {
     2172                        platform = ActiveBasic::Common::Platform::X64;
     2173                    }
     2174                    else
     2175                    {
     2176                        throw;
     2177                    }
     2178
     2179                    CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( platform ), temporary );
    21752180
    21762181                    return 0;
     
    22222227                    lstrcat(temporary,temp2);
    22232228
    2224                     sprintf(str,"%s%s",pj_editor_Dir,lpszCompilerName);
    2225 
    2226                     CreateProcessWithStdHandle( str, temporary );
     2229                    CreateProcessWithStdHandle( ActiveBasic::Common::Environment::GetCompilerExePath( selectingPlatform ), temporary );
    22272230
    22282231                    return 0;
Note: See TracChangeset for help on using the changeset viewer.