我正在尝试在g ++中使用地址清理器,并且在生成过程中会生成以下链接器命令,该命令会产生错误const gulp = require('gulp')
const sass = require('gulp-sass')
const scsslint = require('gulp-scss-lint')
const size = require('gulp-size')
const csso = require('gulp-csso')
const autoprefixer = require('gulp-autoprefixer')
const browserSync = require('browser-sync')
const plumber = require('gulp-plumber')
const reload = browserSync.reload
const AUTOPREFIXER_BROWSERS = [
'ie >= 10',
'ie_mob >= 10',
'ff >= 30',
'chrome >= 34',
'safari >= 7',
'opera >= 23',
'ios >= 7',
'android >= 4.4',
'bb >= 10'
]
const SOURCE = {
scss: 'scss/**/*.scss',
css: 'public/css',
nunjucks: 'views/**/*.nunjucks',
html: '*.html',
js: ['/*.js', 'public/js/*.js']
}
// browser-sync task for starting the server.
gulp.task('browser-sync', function() {
browserSync({
proxy: "web:8080",
files: ["public/**/*.*"],
browser: "google chrome",
port: 7000
})
})
gulp.task('scss-lint', function(done) {
gulp.src('/' + SOURCE.scss)
.pipe(scsslint())
done()
})
// Compile, lint, and automatically prefix stylesheets
gulp.task('sass', gulp.series('scss-lint', function(done) {
let res = gulp.src(SOURCE.scss)
.pipe(plumber())
.pipe(sass({
includePaths: ['node_modules/', 'public/lib/chartist-js/dist/scss/']
}))
.pipe(autoprefixer({
browsers: AUTOPREFIXER_BROWSERS
}))
.pipe(csso(SOURCE.css))
.pipe(gulp.dest(SOURCE.css))
.pipe(size({
title: 'CSS: '
}))
// livereload for development
if (process.env.NODE_ENV === 'development') {
res.pipe(reload({
stream: true
}))
}
done()
})
)
gulp.task('bs-reload', function() {
browserSync.reload()
})
// default task to be run with `gulp`
if (process.env.NODE_ENV === 'development') {
// compile and start browsersync
gulp.task('default', gulp.series('sass', 'browser-sync', function(done) {
gulp.watch(SOURCE.scss, ['sass'])
gulp.watch([SOURCE.js, SOURCE.nunjucks, SOURCE.html], ['bs-reload'])
done()
}))
}
else {
// just compile
gulp.task('default', gulp.series('sass'))
}
module.exports = gulp
我不明白这意味着什么,因此感谢您的帮助。 g ++版本为g++: error: cannot specify -static with -fsanitize=address
。
g++ (GCC) 8.3.0 20190222 (Cray Inc.)