-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issues/0146 strict aliasing violations (#147)
* add docker to duplicate reported issue #146 * fix strict-aliasing issue * disable tiff on github workflow using vcpkg and in vcpkg.json dependencies due to security issue
- Loading branch information
1 parent
a63c7ec
commit 7133fc2
Showing
7 changed files
with
75 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update | ||
|
||
# disable interactive install | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# install developement tools | ||
RUN apt-get -y install cmake | ||
RUN apt-get -y install g++ | ||
|
||
# install CTL dependencies | ||
RUN apt-get -y install libopenexr-dev | ||
RUN apt-get -y install libtiff-dev | ||
|
||
# build CTL | ||
WORKDIR /usr/src/CTL | ||
COPY . . | ||
WORKDIR /usr/src/CTL/build | ||
RUN rm -R * || true | ||
RUN cmake .. -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=TRUE -DCMAKE_VERBOSE_MAKEFILE=on -DCMAKE_CXX_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" | ||
RUN make | ||
RUN make install | ||
|
||
# finalize docker environment | ||
WORKDIR /usr/src/CTL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
"version": "1.5.3", | ||
"dependencies": [ | ||
"imath", | ||
"openexr", | ||
"tiff" | ||
"openexr" | ||
] | ||
} |