Skip to content

Commit

Permalink
Fixed bf-gcc bug
Browse files Browse the repository at this point in the history
Some header files are using #include_next extension, for example, cmath includes math.h.
It searches include directories in the same order as that specified by -isystem option.
So system include directories must be reordered correctly.
  • Loading branch information
RKX1209 committed Jan 10, 2017
1 parent ec6cd43 commit 93ec5d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/scripts/bareflank_gcc_wrapper.sh
Expand Up @@ -374,14 +374,14 @@ if [[ -d "$HOME/compilers/$compiler/x86_64-elf/include/" ]]; then
SYSROOT_INC_PATH="$SYSROOT_INC_PATH -isystem $HOME/compilers/$compiler/x86_64-elf/include/"
fi

if [[ -d "$BUILD_ABS/sysroot/x86_64-elf/include/" ]]; then
SYSROOT_INC_PATH="$SYSROOT_INC_PATH -isystem $BUILD_ABS/sysroot/x86_64-elf/include/"
fi

if [[ -d "$BUILD_ABS/sysroot/x86_64-elf/include/c++/v1/" ]]; then
SYSROOT_INC_PATH="$SYSROOT_INC_PATH -isystem $BUILD_ABS/sysroot/x86_64-elf/include/c++/v1/"
fi

if [[ -d "$BUILD_ABS/sysroot/x86_64-elf/include/" ]]; then
SYSROOT_INC_PATH="$SYSROOT_INC_PATH -isystem $BUILD_ABS/sysroot/x86_64-elf/include/"
fi

# ------------------------------------------------------------------------------
# Execute
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 93ec5d8

Please sign in to comment.