| | |
| | |
| | |
| | |
| | |
| |
|
| | |
| | |
| | |
| | |
| |
|
| | import feature generators common ; |
| | import toolset : flags ; |
| |
|
| | feature.extend toolset : cray ; |
| |
|
| | |
| | toolset.inherit cray : unix ; |
| |
|
| | generators.override cray.prebuilt : builtin.lib-generator ; |
| | generators.override cray.prebuilt : builtin.prebuilt ; |
| | generators.override cray.searched-lib-generator : searched-lib-generator ; |
| |
|
| |
|
| | rule init ( version ? : command * : options * ) |
| | { |
| | local condition = [ common.check-init-parameters cray : version $(version) ] ; |
| | |
| | local command = [ common.get-invocation-command cray : CC : $(command) ] ; |
| | |
| | if $(command) |
| | { |
| | local root = [ common.get-absolute-tool-path $(command[-1]) ] ; |
| |
|
| | if $(root) |
| | { |
| | flags cray .root $(condition) : "\"$(root)\"/" ; |
| | } |
| | } |
| | |
| | command ?= CC ; |
| | |
| | common.handle-options cray : $(condition) : $(command) : $(options) ; |
| | } |
| |
|
| | generators.register-c-compiler cray.compile.c++ : CPP : OBJ : <toolset>cray ; |
| | generators.register-c-compiler cray.compile.c : C : OBJ : <toolset>cray ; |
| |
|
| |
|
| |
|
| | |
| | |
| | flags cray.compile OPTIONS <debug-symbols>on : -Gn ; |
| | flags cray.link OPTIONS <debug-symbols>on : -Gn ; |
| |
|
| | flags cray.compile OPTIONS <optimization>off : -O0 ; |
| | flags cray.compile OPTIONS <optimization>speed : -O3 ; |
| | flags cray.compile OPTIONS <optimization>space : -O1 ; |
| |
|
| | flags cray.compile OPTIONS <cflags> ; |
| | flags cray.compile.c++ OPTIONS <cxxflags> ; |
| | flags cray.compile DEFINES <define> ; |
| | flags cray.compile INCLUDES <include> ; |
| | flags cray.link OPTIONS <linkflags> ; |
| |
|
| | flags cray.link LIBPATH <library-path> ; |
| | flags cray.link LIBRARIES <library-file> ; |
| | flags cray.link FINDLIBS-ST <find-static-library> ; |
| | flags cray.link FINDLIBS-SA <find-shared-library> ; |
| |
|
| | actions link bind LIBRARIES |
| | { |
| | $(CONFIG_COMMAND) $(OPTIONS) -o "$(<)" -L$(LIBPATH) "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) |
| | } |
| |
|
| | |
| | |
| | |
| | |
| |
|
| | actions link.dll bind LIBRARIES |
| | { |
| | $(CONFIG_COMMAND) -shared $(OPTIONS) -o "$(<[1])" -L$(LIBPATH) "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) |
| | } |
| |
|
| |
|
| | |
| | |
| | |
| | actions compile.c |
| | { |
| | $(.root:E=)cc -c $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -o "$(<)" "$(>)" |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| |
|
| | actions compile.c++ |
| | { |
| | $(CONFIG_COMMAND) -c -h gnu $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -o "$(<)" "$(>)" |
| | } |
| |
|
| | |
| | RM = [ common.rm-command ] ; |
| | actions together piecemeal archive |
| | { |
| | $(RM) "$(<)" |
| | ar rc $(<) $(>) |
| | } |
| |
|