diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2024-09-12 15:48:15 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2024-09-12 15:48:15 +0900 |
commit | 2b4218212198403eaa91fd99200611276b1f457a (patch) | |
tree | caae727a18585ac06ab43c046caa5061ca69a95c /goatcflags.m4 | |
parent | 0ac8c3aa841212a193bcf027025521f7adf71255 (diff) | |
download | goatc-2b4218212198403eaa91fd99200611276b1f457a.tar.gz |
Fix clang plugin path lookup
Diffstat (limited to 'goatcflags.m4')
-rw-r--r-- | goatcflags.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/goatcflags.m4 b/goatcflags.m4 new file mode 100644 index 0000000..7febc49 --- /dev/null +++ b/goatcflags.m4 @@ -0,0 +1,23 @@ +#!/bin/sh +# CFLAGS generator for Clang plugin +# Copyright (C) 2024 Nguyễn Gia Phong +# +# This file is part of GoatC. +# +# GoatC is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# GoatC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with GoatC. If not, see <https://www.gnu.org/licenses/>. + +printf '%s' '-fplugin=PREFIX/lib/goatc.so' +for arg in "$@" +do printf ' -fplugin-arg-goatc-%s' "$arg" +done |