Skip to content

Instantly share code, notes, and snippets.

@redj
Last active May 3, 2019 02:15
Show Gist options
  • Save redj/56a0f2e635cd38b54e7d39086edc8b82 to your computer and use it in GitHub Desktop.
Save redj/56a0f2e635cd38b54e7d39086edc8b82 to your computer and use it in GitHub Desktop.
MagicLeap Lumin Compiler Config
{
name = "lumin",
targetPlatform = linux,
numJobs = 8,
makeCommand = "mingw32-make",
ecpCommand = "ecp",
eccCommand = "ecc",
ecsCommand = "ecs",
earCommand = "ear",
cppCommand = "$(LUMIN_SDK_ROOT)\\tools\\toolchains\\bin\\aarch64-linux-android-clang.cmd",
ccCommand = "$(LUMIN_SDK_ROOT)/tools/toolchains/bin/aarch64-linux-android-clang.cmd",
cxxCommand = "$(LUMIN_SDK_ROOT)/tools/toolchains/bin/aarch64-linux-android-clang++.cmd",
arCommand = "ar",
ldCommand = "-$(LUMIN_SDK_ROOT)/tools/toolchains/bin/aarch64-linux-android-clang.cmd -Bdynamic",
sysroot = "$(LUMIN_SDK_ROOT)/lumin",
includeDirs = [
"$(LUMIN_SDK_ROOT)/include"
],
libraryDirs = [
"$(LUMIN_SDK_ROOT)/lumin/usr/lib",
"$(LUMIN_SDK_ROOT)/lib/lumin",
"$(LUMIN_SDK_ROOT)/lumin/stl/libc++/lib",
"$(ECERE_SDK_INST)/bin",
"$(ECERE_SDK_INST)/lib"
],
executableDirs = [
"$(LUMIN_SDK_ROOT)/internal/tools/mldb",
"$(LUMIN_SDK_ROOT)/tools/mldb",
"$(LUMIN_SDK_ROOT)",
"$(ECERE_SDK_SRC)/ecere/obj/debug.win32",
"$(ECERE_SDK_INST)/bin",
"$(GNOSIS_SDK_SRC)/obj/debug.win32"
],
environmentVars = [
{
name = "ECERE_SDK_INST",
string = "C:\\redj\\u\\ecere-sdk"
},
{
name = "ECERE_SDK_SRC",
string = "C:\\redj\\c\\e\\e"
},
{
name = "GNOSIS_SDK_SRC",
string = "C:\\redj\\c\\e\\s\\g"
},
{
name = "LUMIN_SDK_ROOT",
string = "C:\\MagicLeap\\root\\mlsdk\\v0.19.0"
},
{
name = "ML_CERT_DIR",
string = "/home/redj/s/keys/ecere-magicleap"
},
{
name = "MABU",
string = "mabu.cmd"
},
{
name = "MLDB",
string = "mldb"
}
],
prepDirectives = [
"__LUMIN__"
],
compilerFlags = [
"-march=armv8-a",
"-mcpu=cortex-a57+crypto",
"-fPIE",
"-fpic",
"-ffunction-sections",
"-funwind-tables",
"-fstack-protector-strong",
"-no-canonical-prefixes",
"-Wa,--noexecstack",
"-Wformat",
"-Werror=format-security",
"-Wno-invalid-command-line-argument",
"-Wno-unused-command-line-argument",
"-fno-limit-debug-info"
],
linkerFlags = [
"--no-as-needed",
"-z,nocopyreloc",
"--warn-shared-textrel",
"--fatal-warnings",
"--build-id",
"-z,noexecstack",
"-z,relro",
"-z,now",
"--enable-new-dtags",
"-rpath=$ORIGIN",
"-g"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment