|
@@ -38,9 +38,21 @@
|
|
|
#define pclose _pclose
|
|
#define pclose _pclose
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#ifdef _MSC_VER
|
|
|
|
|
+#define DEFAULT_COMPILER "cl"
|
|
|
|
|
+/* Note: Dash options avoid POSIX path conversion when used under msys bash
|
|
|
|
|
+ * and are therefore preferred to slash (e.g. -nologo over /nologo)
|
|
|
|
|
+ * Note: Disable Warning 4200 "nonstandard extension used : zero-sized array
|
|
|
|
|
+ * in struct/union" for flexible array members.
|
|
|
|
|
+ */
|
|
|
|
|
+#define DEFAULT_FLAGS "-nologo -Zi -W4 -wd4200 " \
|
|
|
|
|
+ "-D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS"
|
|
|
|
|
+#define DEFAULT_OUTPUT_EXE_FLAG "-Fe:"
|
|
|
|
|
+#else
|
|
|
#define DEFAULT_COMPILER "cc"
|
|
#define DEFAULT_COMPILER "cc"
|
|
|
#define DEFAULT_FLAGS "-g3 -ggdb -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition"
|
|
#define DEFAULT_FLAGS "-g3 -ggdb -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition"
|
|
|
#define DEFAULT_OUTPUT_EXE_FLAG "-o"
|
|
#define DEFAULT_OUTPUT_EXE_FLAG "-o"
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#define OUTPUT_FILE "configurator.out"
|
|
#define OUTPUT_FILE "configurator.out"
|
|
|
#define INPUT_FILE "configuratortest.c"
|
|
#define INPUT_FILE "configuratortest.c"
|