diff --git a/src/tools/ibmcxx.jam b/src/tools/ibmcxx.jam index 507c1745e2..b23da59d11 100644 --- a/src/tools/ibmcxx.jam +++ b/src/tools/ibmcxx.jam @@ -122,6 +122,8 @@ rule find-versions ( ) } # Declare generators +generators.register-c-compiler ibmcxx.compile.c++.preprocess : CPP : PREPROCESSED_CPP : ibmcxx ; +generators.register-c-compiler ibmcxx.compile.c.preprocess : C : PREPROCESSED_C : ibmcxx ; generators.register-c-compiler ibmcxx.compile.c++ : CPP : OBJ : ibmcxx ; generators.register-c-compiler ibmcxx.compile.c : C : OBJ : ibmcxx ; @@ -281,3 +283,13 @@ actions updated together piecemeal ibmcxx.archive { ar $(ARFLAGS) ru "$(<)" "$(>)" } + +actions ibmcxx.compile.c.preprocess bind PCH_FILE +{ + "$(CONFIG_COMMAND)" -E $(OPTIONS) $(USER_OPTIONS) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" +} + +actions ibmcxx.compile.c++.preprocess bind PCH_FILE +{ + "$(CONFIG_COMMAND)" -E $(OPTIONS) $(USER_OPTIONS) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" +}