You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2025/01/01 17:56:00 UTC
(couchdb) 08/10: Makefile: Add `ELIXIR_ERL_OPTIONS=+fnu`
This is an automated email from the ASF dual-hosted git repository.
jiahuili430 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit a5c099116ab39cca51c9681c02715d2e23b01d12
Author: Jiahui Li <li...@gmail.com>
AuthorDate: Mon Dec 30 12:32:41 2024 -0600
Makefile: Add `ELIXIR_ERL_OPTIONS=+fnu`
```
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell) or set the ELIXIR_ERL_OPTIONS="+fnu" environment variable
```
---
Makefile | 4 +++-
Makefile.win | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index a5aced923..a1d2ecb6c 100644
--- a/Makefile
+++ b/Makefile
@@ -235,7 +235,8 @@ ifeq ($(with_nouveau), false)
endif
.PHONY: elixir-init
-elixir-init: MIX_ENV=integration
+elixir-init: export MIX_ENV=integration
+elixir-init: export ELIXIR_ERL_OPTIONS=+fnu
elixir-init: config.erl
@mix local.rebar --force rebar3 ./bin/rebar3 && mix local.hex --force && mix deps.get
@@ -287,6 +288,7 @@ endif
.PHONY: elixir-source-checks
# target: elixir-source-checks - Check source code formatting of Elixir test files
elixir-source-checks: export MIX_ENV=integration
+elixir-source-checks: export ELIXIR_ERL_OPTIONS=+fnu
elixir-source-checks: elixir-init
@mix format --check-formatted
@mix credo
diff --git a/Makefile.win b/Makefile.win
index 9d811bf6e..313082768 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -215,7 +215,8 @@ ifeq ($(with_nouveau), false)
endif
.PHONY: elixir-init
-elixir-init: MIX_ENV=integration
+elixir-init: export MIX_ENV=integration
+elixir-init: export ELIXIR_ERL_OPTIONS=+fnu
elixir-init: config.erl
@mix local.rebar --force && mix local.hex --force && mix deps.get
@@ -268,6 +269,7 @@ endif
.PHONY: elixir-source-checks
# target: elixir-source-checks - Check source code formatting of Elixir test files
elixir-source-checks: export MIX_ENV=integration
+elixir-source-checks: export ELIXIR_ERL_OPTIONS=+fnu
elixir-source-checks: elixir-init
@mix format --check-formatted
@mix credo