Skip to content

Commit 5df4dfb

Browse files
authored
17 add support for building with gcc version higher than 11 ubuntu 24 (#18)
* Added Ninja as the default generator for vscode * Fixed compiling error with GCC > 11
1 parent 87c23a4 commit 5df4dfb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"Pico"
1212
],
1313
"cmake.mergedCompileCommands": "${workspaceFolder}/build/merged_compile_commands.json",
14-
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/merged_compile_commands.json"
14+
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/merged_compile_commands.json",
15+
"cmake.generator": "Ninja"
1516
}

lib/src/vm/share/runtime/Scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void Scheduler::sleep_forever() {
434434

435435
if (AbortOnInfiniteWait) {
436436
TTY_TRACE_CR(("Infinite wait detected. Aborting ..."));
437-
*((int*)0x01) = 1; // IMPL_NOTE: perhaps adding an Os::abort()?
437+
abort();
438438
current_thread_to_primordial();
439439
SHOULD_NOT_REACH_HERE();
440440
} else {

0 commit comments

Comments
 (0)