Added build_metadata.sh

This commit is contained in:
Allen Webster 2017-11-22 13:52:15 -05:00
parent bc1ba688c6
commit e0829ba9d5
2 changed files with 11 additions and 1 deletions

View File

@ -750,7 +750,7 @@ CUSTOM_DOC("Queries the user for several configuration options and initializes a
default_compiler_sh.size, default_compiler_sh.str,
code_file.size, code_file.str,
binary_file.size, binary_file.str);
fprintf(sh_script, "popd\n");
fprintf(sh_script, "popd > /dev/null\n");
fclose(sh_script);
}

10
build_metadata.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
FLAGS="-Wno-write-strings -Wno-null-dereference -Wno-comment -Wno-switch -Wno-writable-strings"
pushd ../build > /dev/null
g++ $FLAGS -std=gnu++0x ../code/4coder_metadata_generator.cpp -o metadata_generator
popd > /dev/null
CODE_HOME="$PWD"
../build/metadata_generator -R "$CODE_HOME"