From 4f34452ad9260746c5928139b8f735d286861d41 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 9 Mar 2021 16:17:11 +0100 Subject: [PATCH] Added _latomic build word postfix for building on the pi4. Also added postfixes to readme.md. --- README.md | 25 +++++++++++++++++++++++++ SConstruct | 4 ++++ 2 files changed, 29 insertions(+) diff --git a/README.md b/README.md index 02a7f78a..564f3935 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,31 @@ Note: to easily run the editor you can use the `editor.sh` or `editor.bat` in th Append `v` to pass the `vsproj=yes` parameter to the build script. This will generate Visual Studio project files. +#### Postfixes + +There are a few postfixes for the build words. These are more complex options. You have to append them to your build word with an underscore. + +You can use as many as you want. + +For example: + +``` scons bel_slim_latomic -j4 ``` + +##### slim + +With this postfix you can build a slimmed down version of the engine. This disables quite a few unneeded modules. + +``` scons bel_slim -j4 ``` + +##### latomic + +If you get linker errors while building the game/editor about undefined referenced with atomic related functions you can use this postfix. +It will add the ` -latomic ` command line switch to the linker flags. + +I ran into this issue while building on a raspberry pi 4 with the x11 platform. It might be related to the recent reworks to threading. + +``` scons bel_latomic -j4 ``` + #### Patches The build script can apply optional patches. They work similarly to build words, except this time the word has to start with p, and then it has to be followed by the desired patch characters. diff --git a/SConstruct b/SConstruct index 9ea3cc5e..25362bd9 100644 --- a/SConstruct +++ b/SConstruct @@ -357,6 +357,10 @@ if len(sys.argv) > 1: build_string += 'module_webm_enabled=no module_webp_enabled=no module_arkit_enabled=no module_visual_script_enabled=no module_gdnative_enabled=no module_mobile_vr_enabled=no module_theora_enabled=no module_xatlas_unwrap_enabled=no' build_string += ' ' + if 'latomic' in arg_split: + build_string += 'LINKFLAGS="-latomic"' + build_string += ' + target = ' ' if 'E' in arg: