From 745fcd69e606029e7d00b645f60b9f87b2316463 Mon Sep 17 00:00:00 2001 From: Florian Verdonck Date: Thu, 5 Dec 2024 10:29:05 +0100 Subject: [PATCH 1/2] Add examples of bsc flags I use --- pages/docs/manual/latest/build-configuration.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/docs/manual/latest/build-configuration.mdx b/pages/docs/manual/latest/build-configuration.mdx index 99543ffc0..dbfd0461e 100644 --- a/pages/docs/manual/latest/build-configuration.mdx +++ b/pages/docs/manual/latest/build-configuration.mdx @@ -192,6 +192,9 @@ The warning numbers are shown in the build output when they're triggered. See [W Extra flags to pass to the compiler. For advanced usages. +- `-open ABC` opens the module `ABC` for each file in the project. +- `-w -45` enable or disable certain compiler warnings. In this example, `-45` means to disable warning number 45. + ## gentypeconfig To enable genType, set `"gentypeconfig"` at top level in the project's `rescript.json`. From 924e966ffc52496f21c94ebe1e8abf3721098bb7 Mon Sep 17 00:00:00 2001 From: nojaf Date: Thu, 5 Dec 2024 11:03:38 +0100 Subject: [PATCH 2/2] Elaborate on open flag --- pages/docs/manual/latest/build-configuration.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/docs/manual/latest/build-configuration.mdx b/pages/docs/manual/latest/build-configuration.mdx index dbfd0461e..3c548a36a 100644 --- a/pages/docs/manual/latest/build-configuration.mdx +++ b/pages/docs/manual/latest/build-configuration.mdx @@ -192,8 +192,7 @@ The warning numbers are shown in the build output when they're triggered. See [W Extra flags to pass to the compiler. For advanced usages. -- `-open ABC` opens the module `ABC` for each file in the project. -- `-w -45` enable or disable certain compiler warnings. In this example, `-45` means to disable warning number 45. +- `-open ABC` opens the module `ABC` for each file in the project. `ABC` can either be a dependency, namespaced project or local module of the current project. ## gentypeconfig