Skip to content

Commit 3a3be4a

Browse files
authored
Merge pull request rescript-lang#1585 from bloomberg/add_ud_in_bsb
fix rescript-lang#1583, add -U -D support for bspack
2 parents e94c1ec + ca80514 commit 3a3be4a

File tree

15 files changed

+1619
-1327
lines changed

15 files changed

+1619
-1327
lines changed

Changes

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11

2+
BuckleScript 1.7.4:
3+
==================
4+
5+
intenral tools:
6+
7+
- #1583, add -U -D support for bspack
8+
29

3-
BuckleScript 1.7.2:
10+
BuckleScript 1.7.3:
411
==================
512

613
Bug fixes:

jscomp/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -423,28 +423,28 @@ force-snapshotml:
423423

424424

425425
bin/bsppx.ml:./bin/bspack.exe
426-
unset BS_DEBUG; $< -bs-MD -module-alias Config=ConfigDummy -I bin -I ../ocaml/utils/ -I ../ocaml/parsing/ -I stubs -I common -I ext -I syntax -I core -bs-main Bsppx_main -o $@
426+
$< -U BS_DEBUG -bs-MD -module-alias Config=ConfigDummy -I bin -I ../ocaml/utils/ -I ../ocaml/parsing/ -I stubs -I common -I ext -I syntax -I core -bs-main Bsppx_main -o $@
427427

428428
bin/whole_compiler.ml:./bin/bspack.exe
429-
unset BS_DEBUG; $< -bs-MD -prelude-str 'module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Js_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I stubs -I ext -I syntax -I depends -I common -I core
429+
$< -U BS_DEBUG -bs-MD -prelude-str 'module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Js_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I stubs -I ext -I syntax -I depends -I common -I core
430430

431431
bin/bsdep.ml:./bin/bspack.exe
432-
unset BS_DEBUG; BS_OCAMLDEP=true $< -bs-MD -module-alias Config=ConfigDummy -I bin -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/driver -I ../ocaml/tools -I common -I ext -I syntax -I depends -I core -I stubs -bs-main Ocamldep -o $@
432+
$< -D BS_OCAMLDEP=true -U BS_DEBUG -bs-MD -module-alias Config=ConfigDummy -I bin -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/driver -I ../ocaml/tools -I common -I ext -I syntax -I depends -I core -I stubs -bs-main Ocamldep -o $@
433433

434434
bin/bsb_helper.ml:./bin/bspack.exe
435-
unset BS_DEBUG; $< -bs-MD -I stubs -I common -I ext -I syntax -I depends -I bsb -bs-main Bsb_helper_main -o $@
435+
$< -bs-MD -U BS_DEBUG -I stubs -I common -I ext -I syntax -I depends -I bsb -bs-main Bsb_helper_main -o $@
436436

437437
bin/bsb.ml:./bin/bspack.exe
438-
unset BS_DEBUG; $< -bs-MD -I stubs -I common -I ext -I syntax -I depends -I bsb -I ext -bs-main Bsb_main -o $@
438+
$< -bs-MD -U BS_DEBUG -I stubs -I common -I ext -I syntax -I depends -I bsb -I ext -bs-main Bsb_main -o $@
439439

440440
bin/bspp.ml:./bin/bspack.exe
441-
unset BS_DEBUG; BS_MIN_LEX_DEPS=true $< -bs-MD -module-alias Config=ConfigDummy -I ../ocaml/utils/ -I ../ocaml/parsing?parser -I bin -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Bspp_main -o $@
441+
$< -D BS_MIN_LEX_DEPS=true -U BS_DEBUG -bs-MD -module-alias Config=ConfigDummy -I ../ocaml/utils/ -I ../ocaml/parsing?parser -I bin -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Bspp_main -o $@
442442

443443
bin/js_compiler.ml:./bin/bspack.exe
444-
unset BS_DEBUG; BS_COMPILER_IN_BROWSER=true bspack.exe -bs-MD -prelude-str 'module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Jsoo_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I ext -I syntax -I depends -I common -I core
444+
bspack.exe -D BS_COMPILER_IN_BROWSER=true -U BS_DEBUG -bs-MD -prelude-str 'module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Jsoo_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I ext -I syntax -I depends -I common -I core
445445

446446
bin/all_ounit_tests.ml:./bin/bspack.exe
447-
$< -bs-MD -I ounit -I ounit_tests -I stubs -I bsb -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Ounit_tests_main -o $@
447+
$< -bs-MD -I ounit -I ounit_tests -I stubs -I bsb -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Ounit_tests_main -o $@
448448
-include bin/all_ounit_tests.d
449449

450450

jscomp/bin/bsb.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,9 +2733,9 @@ end = struct
27332733
* You should have received a copy of the GNU Lesser General Public License
27342734
* along with this program; if not, write to the Free Software
27352735
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2736-
let version = "1.7.2"
2736+
let version = "1.7.4"
27372737
let header =
2738-
"// Generated by BUCKLESCRIPT VERSION 1.7.2, PLEASE EDIT WITH CARE"
2738+
"// Generated by BUCKLESCRIPT VERSION 1.7.4, PLEASE EDIT WITH CARE"
27392739
let package_name = "bs-platform"
27402740

27412741
end

0 commit comments

Comments
 (0)