mirror of
https://github.com/boostorg/build.git
synced 2026-02-17 13:42:14 +00:00
Fix Sun toolset so that we invoke cc for C files, not CC. Unfortunately
the compiler does not have a switch to change the source language, so we take the command and replace the filename in the last element with 'cc'. [SVN r23539]
This commit is contained in:
@@ -21,15 +21,18 @@ feature.compose <stdlib>sun-stlport
|
||||
: <cxxflags>-library=stlport4 <linkflags>-library=stlport4
|
||||
;
|
||||
|
||||
rule init ( version ? : command * )
|
||||
rule init ( version ? : command * )
|
||||
{
|
||||
local condition = [
|
||||
common.check-init-parameters sun : version $(version) ] ;
|
||||
|
||||
command = [ common.get-invocation-command sun : CC
|
||||
: $(command) : "/opt/SUNWspro/bin" ] ;
|
||||
|
||||
command_c = $(command[1--2]) $(command[-1]:B=cc) ;
|
||||
|
||||
toolset.flags sun CONFIG_COMMAND $(condition) : $(command) ;
|
||||
toolset.flags sun CONFIG_C_COMMAND $(condition) : $(command_c) ;
|
||||
}
|
||||
|
||||
# Declare generators
|
||||
@@ -52,7 +55,7 @@ flags sun.compile INCLUDES <include> ;
|
||||
|
||||
actions compile.c
|
||||
{
|
||||
"$(CONFIG_COMMAND)" $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
|
||||
"$(CONFIG_C_COMMAND)" $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
|
||||
}
|
||||
|
||||
actions compile.c++
|
||||
|
||||
Reference in New Issue
Block a user