From 178d65795b19fb49e432faebb62b10f9c19bc1f7 Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Wed, 14 Dec 2022 20:13:40 +0200 Subject: [PATCH] Remove unneeded include flags, add --debuginfo:off to nim compiler invocation --- nix/status-go/mobile/buildNimbus.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/status-go/mobile/buildNimbus.nix b/nix/status-go/mobile/buildNimbus.nix index a08441b3a2..39a878d5eb 100644 --- a/nix/status-go/mobile/buildNimbus.nix +++ b/nix/status-go/mobile/buildNimbus.nix @@ -91,7 +91,7 @@ let compilerFlags = if isAndroid then - "--sysroot ${androidToolchain}/sysroot -fPIC -I${ANDROID_NDK_HOME}/sources/cxx-stl/llvm-libc++/include/ -I${PROJECT_ROOT}/vendor/nimbus-build-system/vendor/Nim-csources-v1/c_code -target ${androidTargetArch}${api} -I${androidToolchain}/sysroot/usr/include/${androidTargetArch}" + "--sysroot ${androidToolchain}/sysroot -fPIC -target ${androidTargetArch}${api}" else if isIOS then # TODO The conditional for -miphoneos-version-min=8.0 is required, # otherwise Nim will complain that thread-local storage is not supported for the current target @@ -284,6 +284,7 @@ in stdenv.mkDerivation rec { NIMFLAGS="\ --passC:\"${compilerFlags}\" \ --passL:\"${linkerFlags}\" \ + --debuginfo:off \ --cc:clang \ --cpu:${nimCpu} \ --os:${nimPlatform} \