Reduce include path pollution

* configure.ac (MPS_CFLAGS): No longer add -I../mps/code for all files.
* src/igc.c: Instead, add ../mps/code only here.
This commit is contained in:
Helmut Eller 2025-09-09 21:14:32 +02:00
parent de6345ed51
commit ceb1195962
2 changed files with 7 additions and 7 deletions

View file

@ -5570,7 +5570,7 @@ if test "${with_mps}" != "no"; then
fi
# Force -fno-omit-frame-pointer to avoid register scanning bug:
# https://github.com/Ravenbrook/mps/pull/38
MPS_CFLAGS="-fno-omit-frame-pointer -I\$(top_srcdir)/mps/code"
MPS_CFLAGS="-fno-omit-frame-pointer"
fi
# FIXME: update for in-tree MPS

View file

@ -31,12 +31,12 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
# pragma clang attribute push(__attribute__((warn_unused_result)), \
apply_to = hasType(functionType))
#endif
#include <mps.h>
#include <mpsavm.h>
#include <mpscamc.h>
#include "mpscams.h"
#include <mpscawl.h>
#include <mpslib.h>
#include "../mps/code/mps.h"
#include "../mps/code/mpsavm.h"
#include "../mps/code/mpscamc.h"
#include "../mps/code/mpscams.h"
#include "../mps/code/mpscawl.h"
#include "../mps/code/mpslib.h"
#ifdef __clang__
#pragma clang attribute pop
#pragma clang diagnostic pop