mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
927f25ebac
The common framework supports $srcdir & $subdir replacements already, so replace the custom @srcdir@ logic with those. Since the replace happens in slurp_options that cris already uses, we don't have any logic to port over there. We have to duplicate that into the cris slurp_rv helper though.
17 lines
376 B
C
17 lines
376 B
C
/* Check that the simulator has chdir:ed to the --sysroot argument
|
|
#sim: --sysroot=$srcdir/$subdir
|
|
(or that --sysroot is applied to relative file paths). */
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
int main (int argc, char *argv[])
|
|
{
|
|
FILE *f = fopen ("openpf2.c", "rb");
|
|
if (f == NULL)
|
|
abort ();
|
|
fclose (f);
|
|
printf ("pass\n");
|
|
return 0;
|
|
}
|