Skip to content

Commit 7114c47

Browse files
committed
---
yaml --- r: 125438 b: refs/heads/master c: 2e2f53f h: refs/heads/master v: v3
1 parent c74b478 commit 7114c47

File tree

128 files changed

+1302
-2576
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+1302
-2576
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 311a97062183efaa0a6344adb8746feb1523d5b1
2+
refs/heads/master: 2e2f53fad210543be39f6997991abcd403533676
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 9fc8394d3bce22ab483f98842434c84c396212ae
55
refs/heads/try: e5e0db5bc45aa2de6887fbf51dec013ca5c025c6

trunk/configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ case $CFG_OSTYPE in
291291
CFG_OSTYPE=unknown-freebsd
292292
;;
293293

294+
DragonFly)
295+
CFG_OSTYPE=unknown-dragonfly
296+
;;
297+
294298
Darwin)
295299
CFG_OSTYPE=apple-darwin
296300
;;

trunk/mk/platform.mk

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,33 @@ CFG_LDPATH_x86_64-unknown-freebsd :=
580580
CFG_RUN_x86_64-unknown-freebsd=$(2)
581581
CFG_RUN_TARG_x86_64-unknown-freebsd=$(call CFG_RUN_x86_64-unknown-freebsd,,$(2))
582582

583+
# x86_64-pc-dragonfly-elf configuration
584+
CC_x86_64-unknown-dragonfly=$(CC)
585+
CXX_x86_64-unknown-dragonfly=$(CXX)
586+
CPP_x86_64-unknown-dragonfly=$(CPP)
587+
AR_x86_64-unknown-dragonfly=$(AR)
588+
CFG_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).so
589+
CFG_STATIC_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).a
590+
CFG_LIB_GLOB_x86_64-unknown-dragonfly=lib$(1)-*.so
591+
CFG_LIB_DSYM_GLOB_x86_64-unknown-dragonfly=$(1)-*.dylib.dSYM
592+
CFG_CFLAGS_x86_64-unknown-dragonfly := -I/usr/include -I/usr/local/include $(CFLAGS)
593+
CFG_GCCISH_CFLAGS_x86_64-unknown-dragonfly := -Wall -Werror -g -fPIC -I/usr/include -I/usr/local/include $(CFLAGS)
594+
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-dragonfly := -shared -fPIC -g -pthread -lrt
595+
CFG_GCCISH_DEF_FLAG_x86_64-unknown-dragonfly := -Wl,--export-dynamic,--dynamic-list=
596+
CFG_GCCISH_PRE_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-whole-archive
597+
CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-no-whole-archive
598+
CFG_DEF_SUFFIX_x86_64-unknown-dragonfly := .bsd.def
599+
CFG_LLC_FLAGS_x86_64-unknown-dragonfly :=
600+
CFG_INSTALL_NAME_x86_64-unknown-dragonfly =
601+
CFG_LIBUV_LINK_FLAGS_x86_64-unknown-dragonfly := -pthread -lkvm
602+
CFG_EXE_SUFFIX_x86_64-unknown-dragonfly :=
603+
CFG_WINDOWSY_x86_64-unknown-dragonfly :=
604+
CFG_UNIXY_x86_64-unknown-dragonfly := 1
605+
CFG_PATH_MUNGE_x86_64-unknown-dragonfly :=
606+
CFG_LDPATH_x86_64-unknown-dragonfly :=
607+
CFG_RUN_x86_64-unknown-dragonfly=$(2)
608+
CFG_RUN_TARG_x86_64-unknown-dragonfly=$(call CFG_RUN_x86_64-unknown-dragonfly,,$(2))
609+
583610

584611
# The -Qunused-arguments sidesteps spurious warnings from clang
585612
define FILTER_FLAGS

trunk/mk/rt.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ else ifeq ($(OSTYPE_$(1)), apple-ios)
171171
JEMALLOC_ARGS_$(1) := --disable-tls
172172
else ifeq ($(OSTYPE_$(1)), unknown-freebsd)
173173
LIBUV_OSTYPE_$(1) := freebsd
174+
else ifeq ($(OSTYPE_$(1)), unknown-dragonfly)
175+
LIBUV_OSTYPE_$(1) := freebsd
176+
# required on DragonFly, otherwise gyp fails with a Python exception
177+
LIBUV_GYP_ARGS_$(1) := --no-parallel
174178
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
175179
LIBUV_OSTYPE_$(1) := android
176180
LIBUV_ARGS_$(1) := PLATFORM=android host=android OS=linux
@@ -202,7 +206,7 @@ $$(LIBUV_MAKEFILE_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS) $$(LIBUV_STAMP_$(1))
202206
$$(CFG_PYTHON) ./gyp_uv.py -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) \
203207
-D ninja \
204208
-DOS=$$(LIBUV_OSTYPE_$(1)) \
205-
-Goutput_dir=$$(@D) --generator-output $$(@D))
209+
-Goutput_dir=$$(@D) $$(LIBUV_GYP_ARGS_$(1)) --generator-output $$(@D))
206210
touch $$@
207211

208212
# Windows has a completely different build system for libuv because of mingw. In

trunk/src/compiletest/header.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ pub struct TestProps {
3636
pub no_prefer_dynamic: bool,
3737
// Don't run --pretty expanded when running pretty printing tests
3838
pub no_pretty_expanded: bool,
39-
// Which pretty mode are we testing with, default to 'normal'
40-
pub pretty_mode: String,
41-
// Only compare pretty output and don't try compiling
42-
pub pretty_compare_only: bool,
4339
}
4440

4541
// Load any test directives embedded in the file
@@ -55,8 +51,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
5551
let mut check_stdout = false;
5652
let mut no_prefer_dynamic = false;
5753
let mut no_pretty_expanded = false;
58-
let mut pretty_mode = None;
59-
let mut pretty_compare_only = false;
6054
iter_header(testfile, |ln| {
6155
match parse_error_pattern(ln) {
6256
Some(ep) => error_patterns.push(ep),
@@ -91,14 +85,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
9185
no_pretty_expanded = parse_no_pretty_expanded(ln);
9286
}
9387

94-
if pretty_mode.is_none() {
95-
pretty_mode = parse_pretty_mode(ln);
96-
}
97-
98-
if !pretty_compare_only {
99-
pretty_compare_only = parse_pretty_compare_only(ln);
100-
}
101-
10288
match parse_aux_build(ln) {
10389
Some(ab) => { aux_builds.push(ab); }
10490
None => {}
@@ -129,8 +115,6 @@ pub fn load_props(testfile: &Path) -> TestProps {
129115
check_stdout: check_stdout,
130116
no_prefer_dynamic: no_prefer_dynamic,
131117
no_pretty_expanded: no_pretty_expanded,
132-
pretty_mode: pretty_mode.unwrap_or("normal".to_string()),
133-
pretty_compare_only: pretty_compare_only
134118
}
135119
}
136120

@@ -221,14 +205,6 @@ fn parse_no_pretty_expanded(line: &str) -> bool {
221205
parse_name_directive(line, "no-pretty-expanded")
222206
}
223207

224-
fn parse_pretty_mode(line: &str) -> Option<String> {
225-
parse_name_value_directive(line, "pretty-mode")
226-
}
227-
228-
fn parse_pretty_compare_only(line: &str) -> bool {
229-
parse_name_directive(line, "pretty-compare-only")
230-
}
231-
232208
fn parse_exec_env(line: &str) -> Option<(String, String)> {
233209
parse_name_value_directive(line, "exec-env").map(|nv| {
234210
// nv is either FOO or FOO=BAR

trunk/src/compiletest/runtest.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ fn run_pretty_test(config: &Config, props: &TestProps, testfile: &Path) {
168168
props,
169169
testfile,
170170
srcs[round].to_string(),
171-
props.pretty_mode.as_slice());
171+
"normal");
172172

173173
if !proc_res.status.success() {
174174
fatal_proc_rec(format!("pretty-printing failed in round {}",
@@ -200,9 +200,6 @@ fn run_pretty_test(config: &Config, props: &TestProps, testfile: &Path) {
200200

201201
compare_source(expected.as_slice(), actual.as_slice());
202202

203-
// If we're only making sure that the output matches then just stop here
204-
if props.pretty_compare_only { return; }
205-
206203
// Finally, let's make sure it actually appears to remain valid code
207204
let proc_res = typecheck_source(config, props, testfile, actual);
208205

0 commit comments

Comments
 (0)