mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-01-30 14:52:17 +00:00
21 lines
431 B
Bash
21 lines
431 B
Bash
|
#!/bin/sh
|
||
|
# SPDX-License-Identifier: GPL-2.0
|
||
|
exit 1 # Disable plugins
|
||
|
|
||
|
set -e
|
||
|
|
||
|
srctree=$(dirname "$0")
|
||
|
|
||
|
gccplugins_dir=$($* -print-file-name=plugin)
|
||
|
|
||
|
# we need a c++ compiler that supports the designated initializer GNU extension
|
||
|
$HOSTCC -c -x c++ -std=gnu++98 - -fsyntax-only -I $srctree/gcc-plugins -I $gccplugins_dir/include 2>/dev/null <<EOF
|
||
|
#include "gcc-common.h"
|
||
|
class test {
|
||
|
public:
|
||
|
int test;
|
||
|
} test = {
|
||
|
.test = 1
|
||
|
};
|
||
|
EOF
|