• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2set -e
3
4if test -z "$PATHTOCLANG"; then
5  PATHTOCLANG=clang
6fi
7
8for INDEX in $SOURCE_INDEXES
9do
10  CFLAGS=$(eval echo "\$COMPILER_OPTIONS_$INDEX")
11  SRCFILE=$(eval echo "\$SOURCE_FILE_$INDEX")
12  OBJFILE=$(eval echo "\$OBJECT_FILE_$INDEX")
13  $PATHTOCLANG -std=gnu11 -c $CFLAGS $SRCFILE -o $OBJFILE
14done
15
16$PATHTOCLANG $LINKER_OPTIONS $OBJECT_FILES -o $EXECUTABLE_FILE
17