Remove manual feature definitions in boot.

Instead, reuse features as defined in features.h
This commit is contained in:
Calvin Rose 2020-03-31 07:50:40 -05:00
parent ca4a35c90a
commit 244566ccd4
3 changed files with 10 additions and 8 deletions

View File

@ -1,7 +1,7 @@
# Changelog
All notable changes to this project will be documented in this file.
## 1.8.1 - 2020-03-30
## 1.8.1 - 2020-03-31
- Fix bugs for big endian systems
- Fix 1.8.0 regression on BSDs

View File

@ -2,8 +2,8 @@
 
[![Appveyor Status](https://ci.appveyor.com/api/projects/status/bjraxrxexmt3sxyv/branch/master?svg=true)](https://ci.appveyor.com/project/bakpakin/janet/branch/master)
[![Build Status](https://travis-ci.org/janet-lang/janet.svg?branch=master)](https://travis-ci.org/janet-lang/janet)
[![builds.sr.ht status](https://builds.sr.ht/~bakpakin/janet/.freebsd.yaml.svg)](https://builds.sr.ht/~bakpakin/janet/.freebsd.yaml?)
[![builds.sr.ht status](https://builds.sr.ht/~bakpakin/janet/.openbsd.yaml.svg)](https://builds.sr.ht/~bakpakin/janet/.openbsd.yaml?)
[![builds.sr.ht status](https://builds.sr.ht/~bakpakin/janet/freebsd.yaml.svg)](https://builds.sr.ht/~bakpakin/janet/freebsd.yaml?)
[![builds.sr.ht status](https://builds.sr.ht/~bakpakin/janet/openbsd.yaml.svg)](https://builds.sr.ht/~bakpakin/janet/openbsd.yaml?)
<img src="https://raw.githubusercontent.com/janet-lang/janet/master/assets/janet-w200.png" alt="Janet logo" width=200 align="left">

View File

@ -2528,9 +2528,10 @@
# Create amalgamation
(def feature-header "src/core/features.h")
(def local-headers
["src/core/features.h"
"src/core/util.h"
["src/core/util.h"
"src/core/state.h"
"src/core/gc.h"
"src/core/vector.h"
@ -2584,9 +2585,6 @@
(print "/* Generated from janet version " janet/version "-" janet/build " */")
(print "#define JANET_BUILD \"" janet/build "\"")
(print ```#define JANET_AMALG```)
(print ```#define _POSIX_C_SOURCE 200112L```)
(print ```#define _XOPEN_SOURCE 500```)
(print ```#include "janet.h"```)
(defn do-one-flie
[fname]
@ -2595,6 +2593,10 @@
(def source (slurp fname))
(print (string/replace-all "\r" "" source)))
(do-one-flie feature-header)
(print ```#include "janet.h"```)
(each h local-headers
(do-one-flie h))