diff --git a/build/jam/HeadersRules b/build/jam/HeadersRules index 9e2db14bef..34498343f4 100644 --- a/build/jam/HeadersRules +++ b/build/jam/HeadersRules @@ -370,8 +370,18 @@ rule FStandardHeaders kernel media mail midi midi2 net opengl storage support translation ; + local headers = ; + + # The C++ headers. If specified, we use the compiler headers, otherwise + # the ones that come with our libstdc++. + if $(HAIKU_C++_HEADERS_DIR) { + headers += $(HAIKU_C++_HEADERS_DIR) ; + } else { + headers += [ FDirName $(HAIKU_TOP) headers cpp ] ; + } + # GCC headers - local headers = $(HAIKU_GCC_HEADERS_DIR) ; + headers += $(HAIKU_GCC_HEADERS_DIR) ; # Use headers directory, to allow to do things like include headers += [ FDirName $(HAIKU_TOP) headers ] ; @@ -392,14 +402,6 @@ rule FStandardHeaders # Use the root of the private headers -- not so nice, but simplifies things. headers += [ PrivateHeaders $(DOT) ] ; - # The C++ headers. If specified, we use the compiler headers, otherwise - # the ones that come with our libstdc++. - if $(HAIKU_C++_HEADERS_DIR) { - headers += $(HAIKU_C++_HEADERS_DIR) ; - } else { - headers += [ FDirName $(HAIKU_TOP) headers cpp ] ; - } - return $(headers) ; }