Fix sublime_text build command not working with compiler due to
terminal sequences
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
pushd %~dp0
|
pushd %~dp0
|
||||||
rem cl main.cpp -I.. user32.lib
|
rem cl main.cpp -I.. user32.lib
|
||||||
clang core_main.cpp -O0 -Wall -Wno-unused-function -fno-exceptions -fdiagnostics-absolute-paths -g -o main.exe -Wl,user32.lib
|
rem clang core_main.cpp -O0 -Wall -Wno-unused-function -fno-exceptions -fdiagnostics-absolute-paths -g -o main.exe -Wl,user32.lib
|
||||||
rem ubuntu run clang core_main.cpp -O0 -Wall -Wno-unused-function -fno-exceptions -fdiagnostics-absolute-paths -g -o core.out
|
rem ubuntu run clang core_main.cpp -O0 -Wall -Wno-unused-function -fno-exceptions -fdiagnostics-absolute-paths -g -o core.out
|
||||||
|
|
||||||
|
main examples/language_basics.core
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|||||||
@@ -2,11 +2,16 @@
|
|||||||
|
|
||||||
Current:
|
Current:
|
||||||
|
|
||||||
|
- [ ] Maybe wait to implement WASM / bytecode emitter before doing this?
|
||||||
|
Probably need some UInt Int types and those should be default, target
|
||||||
|
decides the size of these
|
||||||
|
- [ ] Fix adressing void is possible, maybe make it possible to address void
|
||||||
|
using bytes
|
||||||
|
* a.void + 10
|
||||||
|
* a.void[10]
|
||||||
- [ ] String declaration in Language.core
|
- [ ] String declaration in Language.core
|
||||||
- [ ] Way to import and force evaluate #import_lazy #import ?
|
- [ ] Way to import and force evaluate #import_lazy #import ?
|
||||||
- [ ] Typeof operator
|
|
||||||
- [ ] Test and bulletproof any, slices
|
- [ ] Test and bulletproof any, slices
|
||||||
|
|
||||||
- [ ] Need tests that make sure stuff errors out
|
- [ ] Need tests that make sure stuff errors out
|
||||||
|
|
||||||
Memory:
|
Memory:
|
||||||
@@ -258,24 +263,28 @@ int main(int argument_count, char **arguments){
|
|||||||
|
|
||||||
if(!args.len){
|
if(!args.len){
|
||||||
log_info("Please specify a file to compile!");
|
log_info("Please specify a file to compile!");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OS_WINDOWS
|
#if OS_WINDOWS
|
||||||
// Set output mode to handle virtual terminal sequences
|
// Set output mode to handle virtual terminal sequences
|
||||||
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
if (hOut == INVALID_HANDLE_VALUE) {
|
if (hOut != INVALID_HANDLE_VALUE) {
|
||||||
return GetLastError();
|
|
||||||
}
|
|
||||||
|
|
||||||
DWORD dwMode = 0;
|
DWORD dwMode = 0;
|
||||||
if (!GetConsoleMode(hOut, &dwMode)) {
|
if (GetConsoleMode(hOut, &dwMode)) {
|
||||||
return GetLastError();
|
|
||||||
}
|
|
||||||
|
|
||||||
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
|
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
|
||||||
if (!SetConsoleMode(hOut, dwMode)) {
|
if (!SetConsoleMode(hOut, dwMode)) {
|
||||||
return GetLastError();
|
log_info("Failed to enable colored terminal output C");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
log_info("Failed to enable colored terminal output B");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
log_info("Failed to enable colored terminal output A");
|
||||||
|
}
|
||||||
|
|
||||||
test_os_memory();
|
test_os_memory();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -286,6 +295,7 @@ int main(int argument_count, char **arguments){
|
|||||||
test_string_builder();
|
test_string_builder();
|
||||||
test_intern_table();
|
test_intern_table();
|
||||||
|
|
||||||
|
log_info("Test");
|
||||||
// emit_line_directives = false;
|
// emit_line_directives = false;
|
||||||
// emit_type_info = false;
|
// emit_type_info = false;
|
||||||
For(args){
|
For(args){
|
||||||
|
|||||||
Reference in New Issue
Block a user