This repository was archived by the owner on Oct 23, 2023. It is now read-only.
File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,10 @@ macro(remove_flag_from_file _target _file _flag)
79
79
endif ()
80
80
endif ()
81
81
# Remove the specified flag, then re-apply the rest.
82
- list (REMOVE_ITEM _cached_${_target} _${_file} _cxx_flags ${_flag} )
83
- string (REPLACE ";" " " _cached_${_target} _${_file} _cxx_flags_string "${_cached_${_target} _${_file} _cxx_flags}" )
84
- set_source_files_properties (${_file} PROPERTIES COMPILE_FLAGS "${_cached_${_target} _${_file} _cxx_flags_string}" )
82
+ if (_cached_${_target} _${_file} _cxx_flags)
83
+ list (REMOVE_ITEM _cached_${_target} _${_file} _cxx_flags ${_flag} )
84
+ string (REPLACE ";" " " _cached_${_target} _${_file} _cxx_flags_string "${_cached_${_target} _${_file} _cxx_flags}" )
85
+ set_source_files_properties (${_file} PROPERTIES COMPILE_FLAGS "${_cached_${_target} _${_file} _cxx_flags_string}" )
86
+ endif ()
85
87
endif ()
86
88
endmacro ()
Original file line number Diff line number Diff line change 1
- FROM base/ archlinux
1
+ FROM archlinux/base
2
2
MAINTAINER Edoardo Morassutto <
[email protected] >
3
3
4
4
RUN mkdir -p /build
@@ -10,9 +10,7 @@ ENV UGID='2000' UGNAME='travis'
10
10
# setup the system
11
11
RUN groupadd --gid "$UGID" "$UGNAME" && \
12
12
useradd --create-home --uid "$UGID" --gid "$UGID" "${UGNAME}" && \
13
- echo 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist && \
14
- echo 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist && \
15
- echo 'Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist && \
13
+ curl "https://www.archlinux.org/mirrorlist/?country=all&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on" | sed 's/^#//g' > /etc/pacman.d/mirrorlist && \
16
14
pacman -Syu --needed --noconfirm base-devel git sudo yajl && \
17
15
pacman -Scc --noconfirm && \
18
16
echo "travis ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$UGNAME
You can’t perform that action at this time.
0 commit comments